6k views

### Rectangle node with given coordinates in tikz [duplicate]

How do I make a tikz rectangle node with given lower-left and upper-right corners, having a given border color and fill color? I know it seems like a basic question, but I cannot find an example in ...
49k views

### How to set exact radius for a node?

I have a bunch of nodes and would like to size them so that their areas represent some numbers I have (so that if I have two nodes with corresponding values 1 and 2, then the second node's area should ...
5k views

### Why is this let expression not working in TikZ (calculating a midpoint)?

I have a rectangle in TikZ and the top left and bottom right corners are called (topleft) and (bottomright) respectively. I wanted to have a label midway down the left hand side of the rectangle, so I ...
665 views

### tikz/foreach: Protect space after “iteration variable”

I try to draw some nodes in tikz, and as they are very simple I wanted to "shorten" this using a \foreach command: \foreach \xnum in {1,2,3,4,5} { \node at (X\xnum center) {\$x_\xnum\$}; } You can ...
2k views

### Tikz overlay with subfig, axis & externalize

I am trying to draw lines between two different tikz-drawings, placed in subfig-environments, for example the corners of the small blue rectangle in the left image and the corners of the axis ...
607 views

### In tikz, is it possible to define a node and set its position later?

I'm trying to draw a diagram and my code is getting too cluttered and difficult to read. For code style purposes, is it possible to define a node in one place and mess with its positioning later? ...
366 views

### How can I add more coordinates to standard TikZ shapes?

Question I would like to know how to add an arbitrary number of coordinates to the default shapes of TikZ—particularly to the side of a polygon. Sample This is similar to https://tex.stackexchange....
700 views

### How add a node on top of a rectangle path?

How can I add a node on top of a rectangle path ? \path[draw] (upperleft) rectangle (lowerright) node[???] {Top}; I am aware of the midway parameter that I can use, but this locates my Top label on ...
876 views

### Move / position tikz \draw plot in reference to a node?

With this MWE: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{fit,calc} \makeatletter \tikzset{ % http://tex.stackexchange.com/questions/47704/how-to-establish-node-anchor ...
241 views

### TikZ: Better solution than nesting tikzpicture?

I created following example script to draw a TikZ that contains a nested tikz: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes.multipart, backgrounds,...
700 views

### How to rotate a composition of Tikz nodes correctly, without rotating the text of their labels?

I have seen How to allow labels' anchors in TikZ to be affected by rotations without rotating the text itself?; but that question doesn't seem to answer my problem, so here it goes. With the MWE ...
483 views

### Connecting line calculations with fitting node in 3D tikz?

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{fit} \usetikzlibrary{3d} \makeatletter \tikzset{ ...
266 views

### Drawing local neuro-fuzzy architecture

I am trying to draw some sort of neural network with additional nodes and connections. I have the following code so far, which I mostly copied from around here. \documentclass[border=0.125cm]{...