Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

2
votes
1answer
33 views

TikZ node: How to decrease vertical space between two lines of text?

Assumed we have some simple code to display text above a brace styled node in TikZ. Minimum working example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{...
1
vote
2answers
112 views

Tikz - cannot figure out why my lines won't connect

I cannot figure out why my code doesn't compile into the attached image, not sure if I am missing something in how Tikz works or there's another issue: Code \begin{tikzpicture} \node[shape=...
0
votes
1answer
23 views

Place an arithmetic symbol between two bar charts in a tikzpicture

I want to visualize a calculation based on two bar charts. For this I want to draw two bar charts side by side and a multiplication sign between both of them. I wanted both axis environments and the ...
1
vote
2answers
55 views

TikZ fill color: How to decrease spatial size of fill behind text?

Assumed we have some simple code to display a text node with a colored fill behind the text. Minimum working example (MWE): \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{...
0
votes
1answer
35 views

How to make the size of the node bigger?

How do I make the size of the node larger? \begin{tikzpicture} \node [left,ultra thick] at (0,6) {$V_i$}; \node [left,ultra thick] at (0,3) {$V_f$}; \end{tikzpicture}
1
vote
1answer
50 views

Referencing Specific Tikz Nodes outside TikzPicture

I am wondering how to reference a Tikz node outside a Tikz Picture, as if referring to an image. This page lists the possible \ref{} objects not including nodes, but maybe there is a package that it ...
7
votes
2answers
75 views

Call for node distance as a variable in TikZ

Is it possible to use the node distance as a variable while expressing coordinates of new nodes with Calc and Positioning libraries? What I want to have is everything within a single piece of code for ...
0
votes
0answers
22 views

How to scale text in a graph of text nodes

This should be the simplest question ever. I want to be able to change every letter in the graph below by a text box very similar to the one on the left of J. Now, the problem is that if I scale J and ...
1
vote
1answer
20 views

Tree: One child node is crossed by line, others not

In the example the fourth child node is crossed by the line, but the others, e. g. the second one not. How can I achieve that also for the fourth one the line is "lying under" the box? \documentclass{...
1
vote
1answer
25 views

Histogram with Markers, Marker Nodes and Legend Not Displaying Everything Correctly

I am still kinda new to TEX. I am currently working on a paper submission, however I am having trouble properly combining markers, node labels for the markers, a legend and a histogram all in the same ...
2
votes
1answer
47 views

Parameterize node circular sector shaded

I want to parameterize node creation in a foreach. The creation prozess was solved in: Cut part of radialshading out as node shape circular sector I think the substitution in the foreach has a ...
2
votes
1answer
56 views

Cut part of radialshading out as node shape circular sector

Part of the radialshading should be cut out of it. With this \clip(?)ed part I want to fill the \predefined node shape (here: \node maerz). Sorry for my english. The \shade works for two colors (...
3
votes
1answer
44 views

shading circular sector

I want to shade the predefined node shape "circular sector" pgfman301a,p 706, from the marked anchor points (sector center and arc center). The draw is based on pgfman301a,p.686. It's "on axis" ...
3
votes
1answer
57 views

Using a predefined shape circular sector

I'm trying to use the shape "circular sector" pgfman301a, p.706. I find no way to change length of axes (should be variable dependent of circle dimension). to position "apex" on 0,0 why "minimum ...
4
votes
1answer
180 views

Tikz - increase the spacing between 2 nodes of a stencil

I want to increase the spacing between 2 nodes of a stencil. The original design of the stencil comes from this question. \documentclass[a4paper, 12pt]{book} \usepackage{pgfplots, tikz} \newcommand{\...
2
votes
1answer
40 views

Relative coordinate in node placement

When I try to use relative coordinates in \node using the syntax: (x,y)++(a:r) it gives me an error, but when I just specify the second coordinate as ++(a:r) it's like the (x,y) first coordinate is ...
4
votes
2answers
112 views

Help with a node diagram

I am trying to recreate this diagram from a paper for my thesis. The idea would be that I can scale it to different sizes, only use parts of it and insert different nodes like the circles and ...
5
votes
3answers
271 views

What is wrong with the use of `isodd` of `xifthen`?

The white/black board can be drawn by testing the parity of node positions as follows: \documentclass[tikz]{standalone} \usepackage{xifthen} \begin{document} \begin{tikzpicture}[every node/.style = ...
5
votes
3answers
104 views

How to increase curvature using tikz

I was trying to replicate an image of a book, but I don't know how to increase the curvature on the curves. I've been done this so far: \documentclass[tikz, border=2pt]{standalone} \usepackage[utf8]{...
2
votes
2answers
50 views

colorbar problem when scaling every node

I'm trying to illustrate a confusion matrix, and when I scale every node and it seems to mess up the colorbar. Notice that the colorbar is not completely filled in. And here's an MWE: \documentclass{...
2
votes
2answers
35 views

node shadowed extra } error

try to get pgf manuals title page code into own areas. I have copied the code snippet of titlepage for nodeshadowed, but get error: \nodeshadowed has an extra }. I don't see the error. Additionally it ...
2
votes
1answer
51 views

TikZ: flipping shape without moving anchors

When drawing game trees in TikZ, I use upwards-pointing triangle to denote the maximizing player 1 and downwards-pointing triangle for the minimizing player 2. However, my current solution doesnt make ...
4
votes
1answer
113 views

tikz nodes inside node

I'm not sure how to position the three nodes inside the other "trustee characteristics". Have tried rectangle, however I guess this is not the right approach. Also the arrow should end/begin at the ...
3
votes
1answer
46 views

Line from Origin to Nodes at circles centers

I want to produce a figure like this: with this code: \begin{tikzpicture} \draw (0,0) circle [radius=10.75cm]; \draw (0,0) circle [radius=4.2cm]; \begin{scope}[even odd rule] \draw[fill=gray!20,...
3
votes
0answers
59 views

Center align text decoration along path

I am trying to duplicate the node highlighted in green but along a curved path. It mostly works, but when I attempt to apply the text align=center effect to the decoration, I get Dimension too ...
5
votes
2answers
254 views

How to draw a node as an arrow?

So far I have this code that generates 4 boxes side by side: \documentclass{article} \usepackage{tikz} \tikzstyle{arw} = [retangle, minimum width=3cm, minimum height=2cm, ...
3
votes
3answers
183 views

tikz node distance for particular set of nodes

I'd like to change the node distance for a specific set of nodes, e.g. the first two in "introduction". The distance for the nodes in a set should be smaller, while the distance in between the sets ...
3
votes
1answer
55 views

Drawing movement arrows and roofs with tikz-qtree

I'm trying to draw movement arrows in the following tree (it works with the \qtree package) : \Tree [.CP [\qroof{which book on syntax}.DP ] [.C' [.C will ] [.TP [\qroof{The students}.DP ] [.T' [.<...
2
votes
3answers
69 views

Draw circle with nodes and arrows on it

I try to reproduce theses graph, but unfortunately, without success… Here is the Tikz I have produced: \usetikzlibrary{arrows.meta} \usetikzlibrary{bending} \usetikzlibrary{arrows} \begin{...
4
votes
3answers
50 views

\verb in label or pin of a tikz node

The documentation of tikz gives following example containing the \verb command in the node text (Section 2.21 Adding Text, v3): \begin{tikzpicture} \draw (0,0) rectangle (2,2); \draw (0.5,0.5) node [...
2
votes
1answer
34 views

How to supress extra-Line in tikz node

is there a way to supress the first line within this tikz-node? So that the text is aligned to the upper-boxframe . \documentclass[margin=5mm]{standalone} \usepackage{pgfplots} \begin{document} \...
1
vote
2answers
64 views

Increase space between node label and start of Gantt chart

I just want to increase the space between the node labels and the start of my gantt chart. It just needs to be enough so that the first one doesn't over lap with the milestone. Any ideas how to do it? ...
2
votes
2answers
77 views

How to add perpendicular symbol at desired location

I am trying to draw perpendicular symbol on point where the perpendicular line from O is meeting the line AB. But I am unable to achieve it. I try via simple draw because I use pgfplots (you can see ...
2
votes
1answer
35 views

How to make text start/end at a node location in tikz?

I'm trying to make a Figure in tikz, I would the labels "u[i,J]" and "u[I,J]" to keep certain distance from his corresponding arrows, based on labelDist parameter. As an example, is it possible to ...
20
votes
1answer
347 views

Making motorway with TikZ

Consider the following MWE: \documentclass[border=5pt,tikz]{standalone} \usetikzlibrary{calc} \tikzset{ car/.style={ scale=.5,minimum width=.1cm,minimum height=.5cm,fill=#1 } } \begin{...
2
votes
3answers
49 views

Arrows, nomenclature and shaded area

I want to make a diagram similar to this one However, I have only been able to do this: With the code \begin{tikzpicture} \draw (1,0) circle [radius=10.75cm]; \draw (1,0) circle [radius=4.2cm]; \...
4
votes
2answers
105 views

Can't add square root symbol in Geonode Name

I'm a beginner with LaTex and i'm stuck with the following error. http://prntscr.com/lcc8re What i'm trying to do is have a point (i'm using the Geonode from the pst-euclide package) that looks like ...
4
votes
2answers
281 views

Put a circle around elements in a matrix environment

So I'm trying to put circles around 6,8,10,18 in row 1-4 respectively, however this does give me an error warning saying "missing $ inserted" \documentclass{article} \usepackage{mathtools} \...
3
votes
1answer
84 views

Tikz mindmap customize nodes color, distance and size

the code below is almost perfect to me but if I chose LateX it is to get the perfection. There is 3 problems with the code below : 1) how can I modify the radius of the nodes (individually) ? 2) ...
1
vote
0answers
62 views

Making a working neuronal network

I've got the following two MWE: \documentclass[border=5pt,tikz]{standalone} \begin{document} \begin{tikzpicture} %%% %%% %%% %>> We are building a perceptron ...
6
votes
1answer
219 views

How can a node remember it's previous position?

Consider the following MWE: \documentclass[border=5pt,tikz]{standalone} \begin{document} \foreach \n in {2,3,...,20} { \begin{tikzpicture} \useasboundingbox (-6,-4) rectangle (2,1); ...
3
votes
1answer
37 views

How to connect to the north anchors of triangular (leaf) nodes in tikz-qtree?

How to make the edges from x (resp. y) to connect to the north anchors of the triangular leaf nodes A and B (resp. C)? Note that this should not change the edge style between x and y. Therefore, the ...
3
votes
1answer
189 views

My string is too long for my node. I need more space

((I was supported from @Skillmon. He is the owner of this code.)) I have a forest tree with a page break. My string is too long for my node. The horizontal line must be longer. In the past i used ...
2
votes
1answer
66 views

\newcommand inside a tikz node

In this example \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{shapes.misc, positioning, calc} \newcommand{\element}[1]{[draw, rectangle] {#1}} \usepackage{tikz} \begin{document} \begin{...
6
votes
2answers
133 views

Connecting nodes in a proper way

How can I connect the $n$-th node with the $n-1$ node? \documentclass[border=5pt,tikz]{standalone} \tikzset{ io/.style={ fill=black,circle,inner sep=.1pt } } \begin{document} \...
6
votes
1answer
167 views

Tikz Matrix: Nodes are not 'in-a-row'? [duplicate]

I am using a matrix for node-positioning with a fixed node witdh. However, as some nodes contaning more than one line of text some nodes are shifted in y-axis and I don't know why or how to fix this. ...
3
votes
1answer
70 views

Make tikz nodes touch bottom to top edge

I have two tikz nodes like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \usepackage{amsmath,bm,times} \newcommand{\mx}[1]{\mathbf{\bm{#1}}} % Matrix ...
0
votes
1answer
96 views

Command to specify the exact height of a node in Tikz

I have a maybe really dumb question. I am using a matrix of nodes where I specify a 'minimum height' for all nodes globally (1.5 cm) However, when I now want to set the node height of row 6 to a ...
4
votes
2answers
69 views

Drawing a 'line of arrows' with the same distance between them

I have a rectangle node and want to draw multiple arrows showing in one direction and have a fixed distance between each other. The drawback of my current MWE is that the distances written in the ...
2
votes
3answers
66 views

Tikz: control where path meets a node in a path diagram

I'm trying to make a path diagram for my thesis and I'm running into trouble right at the beginning: I want the arrows to end below the y-rectangles (meaning at the lower side of the rectangles). I ...