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

0
votes
0answers
8 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
34 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
203 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
29 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
183 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
49 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
121 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
145 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
50 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
46 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
57 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
55 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
35 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
62 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
44 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
67 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
68 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
51 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
207 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
32 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
50 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
124 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
63 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
58 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
135 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
74 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
65 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
56 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
146 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{...
0
votes
2answers
149 views

Is there a simple way to use stick figures into PGF/Tikz drawings?

I find that stick figures often make great tools for illustrations of organizations. They are understandable, don't crowd the visual space, and clearly represent an individual person. Ideally, I ...
5
votes
1answer
97 views

Clipping at node – making a pattern

I want to add a pattern to a node in TikZ; how can I, for example, fill in the number 5 with the numbers 5 (ie a picture in a picture ...)? Here is my MWE: \documentclass[border=5pt,tikz]{standalone}...
1
vote
1answer
51 views

Overlapping nodes in TikZ - Not enough space on paper

I need the nodes to not overlap and I don't know what to do. I tried altering the paper size, the font size and the minimum node size. I would adjust the coordinates to have enough space between the ...
5
votes
2answers
240 views

Top-Align Text in TikZ Node

I want the heading ("Meldebogen", "Anklage", "Beweisaufnahme", "Urteil") all on the same vertical height regardless of the content. I figured that simply top-aligning the text in every node would do ...
1
vote
1answer
34 views

Wrongly calculated (or displayed) x-coordinate in tikz

I would like to plot the following figure: but only that in the nodes x_1,x_2,x_3 the right coordinates of the points displayed. The corresponding MWE is the following - I have included the entire ...
3
votes
2answers
48 views

Currency symbol not working in tikzpicture

I want to create a currency exchange graph as shown with currency symbol instead of wordings in nodes. and this is the original code \documentclass[10pt,a4paper]{article} \usepackage{tikz,tkz-berge} ...
4
votes
3answers
313 views

Why does “\x-1” not work in node name?

How to fix the error in referring to a node using \x-1? It works in [below left = \x-1] but does not work in \draw[->] (\x-1) to (\x). \documentclass[tikz]{standalone} \usepackage{pgffor,pgfmath}...
2
votes
1answer
49 views

Tikz: Node-label distance depends on way label is added?

It seems that the distance between a node and its label depends on the way the label is inserted: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [...
1
vote
1answer
57 views

I can't write \dfrac or \tfrac in the curly brackets

I want to write a fraction for a point on an axis. node at (1,0) {$\dfrac{1}{2}$}; I'm able to do it with \frac but not the other two types of fraction code like \dfrac or \tfrac. Is there a reason ...
4
votes
1answer
94 views

Good practice mindmap-like scheme

I want to make a scheme like this: I've started to work with tikz. Although I could make this in the way I'm doing it, I think it is not the correct way do make it. \documentclass[landscape]{article}...
1
vote
1answer
38 views

About some tikz styles

I have the following code \documentclass{article} \usepackage[left=0in,top=2in]{geometry} \usepackage{tikz,amsmath} \usetikzlibrary{arrows,shapes} \newcommand{\tikzmarkC}[1]{\tikz[overlay,remember ...
3
votes
2answers
61 views

Tikz forest help

I am working to create but cannot add the red box. There are more other modifications I am working to include: arrows instead of lines, a caption, and more space so the boxes are not cut. Here is my ...
1
vote
2answers
64 views

Rounded boxes around text

I have following problem. I want to create rounded boxes around my text, so far I have: \tikz[baseline=(char.base)]\node[anchor=north west, draw,rectangle, rounded corners, inner sep=1.6pt, minimum ...
2
votes
1answer
53 views

Tikz Four Groups

I am aiming to make a flow diagram as drawn however I have not been able to add the four boxes and include the top box centered. Also note the top box should be a full box. Please assist if you could! ...
3
votes
1answer
45 views

Sizing issue in matrix of nodes

I'm trying to build a neural network, based on the first answer here. The final networks should have 3 input nodes, 4 hidden nodes, and 2 output nodes. Right now, the image looks like this: Why is ...
3
votes
4answers
321 views

how to draw multiple pictures in a node

I'm trying to draw a diagram with pictures with TikZ. I know that people can direct use \includegraphics within a node so that the picture will be placed there. My question is, how do I generate a ...
0
votes
1answer
88 views

Adjust the position of path label

My problem is the path label mixes the arrow, my code is the following: \documentclass{article} \usepackage{tikz} \usepackage[intlimits]{amsmath} \begin{document} \begin{center} \begin{tikzpicture}[...
5
votes
3answers
377 views

How to draw and label vertices of a polygon?

I am drawing a convex polygon and a line connecting two points on edges. However, as shown in the figure below, the endpoints of the line are not on the edges. How to fix that? \documentclass{...
2
votes
1answer
57 views

Tikz: Failing to create node from coordinates

I'm building a tree graph and started from creating vertices \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \...
1
vote
1answer
46 views

How to know what is the current name of the node in which the pgfkey is set

I want to pass an information to a pgfkey that has to produce some code relatively to the node in which the key is set. In this example I'd to access to the node (a) and put another node at (a.north ...
0
votes
2answers
36 views

Positioning nodes is inconsistent with tikzpicture in beamer

Take a look at the following MWE \documentclass[t]{beamer} \usepackage{siunitx,tikz} \usepackage{amsmath} \usepackage{color} \usepackage{flexisym} \usepackage{enumerate} \usetikzlibrary{positioning,...