Posts

Showing posts from March, 2019

Regular polygon VS circle shapes in TikZ

Image
6 This question is a kind of continuation this answer. There, it remains unclear which is the origin of the white space around the node content, if a square shape is used, and I would like to understand this. Given the following MWE documentclass[tikz, border=1mm]{standalone} usetikzlibrary{shapes.geometric} begin{document} begin{tikzpicture}[every node/.style={draw, inner sep=0}] node[regular polygon,regular polygon sides=4] (a) {XX}; node[regular polygon,regular polygon sides=100, blue] (b) {XX}; node[circle] (c) {XX}; foreach a in {north,south,east,west,north east,south east,north west,south west}{ fill[red] (a.a) circle(0.5pt); fill[yellow] (b.a) circle(0.25pt); fill[orange] (c.a) circle(0.25pt); } end{tikzpicture