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}.

5
votes
3answers
86 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
37 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
1answer
21 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
45 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
35 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
38 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
49 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
243 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
135 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
42 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
59 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
45 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
30 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
51 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
41 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
30 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
324 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
44 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
102 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
241 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
59 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) ...
0
votes
0answers
17 views

How to wrap text in genealogytree

\documentclass[UTF8,tikz]{standalone} \usepackage{tikz} \usepackage[all]{genealogytree} \begin{document} \begin{tikzpicture} \genealogytree[template=formal graph] { child{ g[male]{ABCDEFG} p[...
1
vote
0answers
55 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
212 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
33 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
57 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
130 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
158 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
57 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
53 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
66 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
60 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 ...
3
votes
1answer
37 views

The node positions in chain changed unexpectedly

As shown below, the node positions have been changed when using chain. How to fix it? \documentclass[tikz]{standalone} \usetikzlibrary{positioning, chains} \begin{document} \begin{tikzpicture}[...
4
votes
2answers
83 views

Horizontal distance between nodes extending over the `\textwidth` (TikZ)

I am working on a diagram for my thesis; I extract data from a simulation (left column), compute it in some way (center column) and get a result (right column) which is the input for another code, so ...
2
votes
1answer
45 views

\textcolor{}{} behaves differently within an \href in a \node

Note: This question is similar to \textcolor{}{} behaves differently within a \node. The difference here is that The problem occurs inside an \href (within a \node) and The workaround hack solution ...
8
votes
1answer
69 views

\textcolor{}{} behaves differently within a \node

I would expect that using the \MyText macro defined as \newcommand{\MyText}{before \textcolor{red}{XX} after} should always yield the same color for the text "before" and "after". But it appears ...
2
votes
2answers
73 views

How to place a Parabola/Distribution on top of a node in Tikz?

I'm trying right now to place a distribution (preferably a Gaussian curve) on top of a node within TikzPicture. The distribution should ideally be slightly offset vertically from the node, although ...
0
votes
1answer
82 views

Cell placement in a Tikz matrix

I have a single column Tikz matrix, each cell containing one or more lines of text. I would like the first cell to have its text centered while all the other cells have their text left aligned. In ...
7
votes
3answers
212 views

Dyck paths behaving as nodes

I am sort of having two main issues with Dyck paths. I'm trying to get to the image on the left (which I edited it with Paint), and what I currently have is the image on the right. I believe that what ...
1
vote
1answer
39 views

Positioning table to the bottom left of a node

I am having trouble with the positioning of a table. I have a node just below the center of the page and would like to place a table on the bottom left of such node, but when compiling it places the ...
3
votes
1answer
64 views

Drawing over parts of a node with rounded corners

On the left I have created two nodes (Zero Node in blue and One Node in gray) and would like to draw over the existing path from A-B-C-D (including the notches). On the right is my attempt drawn in ...
5
votes
4answers
162 views

TikZ matrix of objects in LaTeX

I want to make a TikZ matrix of objects, and then draw some vertical and horizontal lines. For instance, I would like to put the elements of the Polygon division example inside a tabular environment. ...
2
votes
2answers
67 views

How to draw a line into the center of a node?

As written in the title I need to let the lines go into the center of the circle. [Code Part at: %Pfeile von den Dots zu den K-Kreisen ] I don't want to use coordinates, only the nodes in reference to ...
2
votes
1answer
102 views

TIKZ Matrix nodes filled with colour afterwards and set to background

I have a (maybe easy) problem in formatting a matrix in tikz. In the first step I ordinary filled my matrix with nodes inside the matrix environment. After finishing my matrix I use the fit ...
2
votes
2answers
275 views

Draw a line over a node Tikz

Can someone help me to draw a red line --- like in the photo? Thank you so much in advanced. \begin{tikzpicture} \node[draw,fill=white,ellipse,minimum height=4cm,minimum width=7cm,text width = 5cm,...
3
votes
2answers
88 views

LaTeX Tikz Arrows overlays node's labels

Could you help me to solve this problem, please ? Where "Kalman filter" is the label of the node below I want the arrows like in red ones. Thank you in advanced. \begin{tikzpicture} \node[draw,fill=...
0
votes
0answers
66 views

Placing Node Somewhere Along A tikz Plot

I was looking at the tikz/pgf manual (section 22.5), and they have the code \begin{tikzpicture}[domain=0:4] \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9); \draw[->] (-0.2,0) -- (4....
3
votes
1answer
60 views

Timeline in tikz. Prevent nodes from overlaping

I am trying to create timeline template that looks like this: It looked ok but when I added bignodes everything started overlaping (bignodes are the text nodes to be on the right of corresponding ...
4
votes
1answer
152 views

Overlay of text along path

In beamer, I failed to show the text above a path from the second slide on using the overlay specification like <2-> and onslide<2->. How to do that? \documentclass{beamer} \usepackage{...