Linked Questions

43
votes
3answers
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 ...
12
votes
4answers
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 ...
9
votes
1answer
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 ...
7
votes
2answers
671 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 ...
6
votes
3answers
612 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? ...
6
votes
1answer
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 ...
4
votes
2answers
367 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....
4
votes
1answer
244 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,...
4
votes
2answers
726 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 ...
4
votes
1answer
884 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 ...
4
votes
1answer
705 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 ...
3
votes
2answers
486 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{ ...
2
votes
1answer
273 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]{...
2
votes
1answer
498 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 ...
1
vote
1answer
268 views

Background fill for H (high) timing character, and diagram size for tikz-timing

I would like to add a filled background to the H timing character, which otherwise does not have one (it is just a line). I don't want to use the D or U characters which do have a background fill, ...

15 30 50 per page