51k 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 ...
651 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? ...
696 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 ...
378 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....
772 views

How can I 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 ...
493 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{ ...
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 ...
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 ...
263 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,...
922 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 ...
724 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 ...
287 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]{...
508 views

Scaling (and annotating) images in a rotated matrix of tikz nodes, scaled to page size?

In the MWE below, which currently results with this output (click for full-res): ... I want to: Arrange four images in 2 rows, 2 columns, for which I've used a \matrix of \tikz nodes, Have them all ...