Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

Filter by
Sorted by
Tagged with
1
vote
1answer
44 views

Add one more node in tree

Question: I have one MWE of tree in which i want to add one more node under G having lable I. How to do this? \documentclass[10pt]{article} \usepackage{pgf,tikz,pgfplots} \pgfplotsset{compat=1.15} \...
1
vote
1answer
766 views

TikZ node positions

I am trying to uncover parts of a PDF (available here) frame by frame (i.e., rectangle 1 on one frame, rectangle 2 on next frame and so on) using TikZ. However, I am having difficulty in referencing ...
1
vote
1answer
51 views

My TikZ output is omitting nodes

I really don't understand why this is happening, so I thought it was a bug from TeXStudio, but when I went on TeXShop and created a MWE it persists. I have the following code: \documentclass[border=...
1
vote
1answer
26 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
960 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 ...
1
vote
1answer
50 views

Creating nodes in matrix (2)

I asked a question before but I redacted it wrong. I needed to know how to move the nodes in that matrix. The nodes are currently on the right side, b I want to move them freely to show column ...
1
vote
1answer
264 views

TikZ connecting lines and nodes

my question is the following: as you can see in the code below I placed some nodes and want to connect them with lines. But so far I was not able to let all the lines start/ end at the same point. So ...
1
vote
1answer
634 views

Iterate through a list by index

I'm making a TikZ picture in which I have a list of node names and coordinates and I want to go through the lists putting ith node name at the ith coordinate. My MWE: \documentclass{beamer} \...
1
vote
1answer
176 views

Connecting smartdiagrams' sequence diagrams

I'm completely new at TikZ and Smartdiagrams, and can't find any help to make the following diagram: Each of those items is a sequence diagram of only one item (they have to be sequence diagrams to ...
1
vote
1answer
993 views

Draw arrow with corners in tikz

I want to draw a line with multiple corners/segments, i.e. instead of being straight, it looks more like a Z with an arrow on the end. The code for the first part of the line looks like this: \...
1
vote
1answer
167 views

tikz tree node on edge always above the line, not just on it

I am building attack trees for my bachelor thisis. And i need to connect some children nodes by a logical and operator. So i just drew a line between thoses nodes, and put a node on it. Sadly I am ...
1
vote
1answer
68 views

How to simplify nodes?

I am trying to draw a square with label, but i think nodes can be simplify. \begin{tikzpicture} \draw (0,0) -- (4,0) -- (4,4) -- (0,4) -- cycle; \draw (2,0) -- (4,2) -- (2,4) -- (0,2) -- cycle; \node[...
1
vote
1answer
51 views

tikzstyle introduces no shape known error

Quite strangely, \node (S) at (0,0) [circle, fill, label={270:Source $S$}]{}; \draw [blue, ->] (S) -- node[label={$\vec v$}] {} (1,0.5) -- (2,1); functions properly and gives me what I want, but \...
1
vote
1answer
381 views

How to write a remark/text under a groupplot-windows

The legend of my last groupplot is printed below the last groupplot so far so good. But how can I write a text above the groupplot like a headline? Normally, I would just at an legendentry without ...
1
vote
1answer
78 views

Remove upper part in an image

I am new in tikz, I didn't want the red boxed part in the below image, I am using the following code. How I change my code ? \documentclass{standalone} \usepackage{mathtools} \usepackage{pgfplots} \...
1
vote
1answer
424 views

How to rotate grid only / prevent the rotation of grid

I am beginner in tikz. I am using the following code so that the grid also rotating how I prevent the rotation of grid / how I rotate grid by 0 . \begin{scope} [xshift=15 ,yshift=0, rotate=30] \...
1
vote
1answer
50 views

Macro involving TikZ mode does not work

I've create a macro for labelling fragments of sentences. It's designed to replace a segment of text with a label. Unfortunately, it fails to compile whenever the text fragment contains a non-...
1
vote
1answer
351 views

Drawing graphs in latex with text-only vertices

I want to extend the implementations of the examples here to represent graphs with vertices simply represented as text as shown in the figure . I wasn't able to find similar templates/examples in ...
1
vote
2answers
1k views

Tikz node text vertical align with linebreak

I want to vertical align text in a chain of nodes. One node has a linebreak. What is the best way to do this? This is my current example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
877 views

Flow chart Latex ! Positioning of two nodes

I need to split the two boxes N9 and N10 below N8 and side by side to each other. Help appreciated \begin{figure}[h] \centering \tikzstyle{startstop} = [rectangle, minimum width=3cm, minimum height=...
1
vote
1answer
242 views

Tikz - Overlaping border on adjoining nodes

I am having trouble obtaining a single border between two adjoining node shapes with tikz. When I use a thick border, it leads to an overlapping double border at the connection of two nodes. How ...
1
vote
1answer
292 views

tikz drawing label between nodes

I am drawing TCP packet diagram and I have been using coordinates to draw my packets and to place the socket end points (IP:port) on my diagram. I now need to include the TCP packet type. I would ...
1
vote
1answer
445 views

Arrow badly connected with Tikz

I'm making a small scheme with TIKZ (and KTIKZ) and I have a problem when drawing an arrow between two node. I want to draw an arrow from B to C by using the \draw with the following script : \...
1
vote
1answer
664 views

Beamer: Nodes inside itemize

I am trying to include nodes as items, so that the text is aligned as it was a normal item, but I could still include arrows and boxes as in the MWE below: \documentclass{beamer} \usepackage{tikz} \...
1
vote
1answer
464 views

Problem of positioning and size of the additional text on tikz/gnuplot figures

I want to at my legend using tikz environment on top of my figures generated with gnuplot. I am happy with the result when I comment the part \node[anchor=center, text width=0.39cm, xshift=0cm, yshift=...
1
vote
1answer
84 views

\fill left of a node using the positioning library

How can I position a \fill relative to a node? I would position a node in the following way, using the positioning library: \node (mynode) at (2,4) {text}; \node [left=of mynode] {o}; But if I try ...
1
vote
1answer
498 views

Different height in different split parts + arrow positioning

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart} \begin{document} \tikzset{every loop/.style={min distance=1mm,in=110,out=70,looseness=2}} \begin{...
1
vote
1answer
111 views

Change node distance using a macro and include a label to the background next to the nodes

the picture doesn't fit onto an A4 page. So what I would like to change/add is: the node distance the font size a vertical text which groups nodes together a number infront of each node as the "step ...
1
vote
3answers
67 views

label arrow for tree diagram

Kindly I want to ask how I can plot a diagram like the attached one on latex? Thanks Here is what I have already done: \begin{tikzpicture}[>=latex'] \tikzset{block/.style= {draw,rectangle,...
1
vote
1answer
44 views

Name in the dotted arc

In the attached picture, we need to have 'a' in the dotted arc. Below is the code. \begin{tikzpicture} [scale=.9, auto=left, every node/. style={circle, fill=black!70, minimum size=0.1cm, inner sep=...
1
vote
1answer
39 views

Defining points as nodes in TikZ

In the following MWE, why does the segments don't go up to the points I have defined? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (A) at (0,0) {}; \node (B) ...
1
vote
1answer
88 views

More natural looking circle around math using TikZ

In my slides, I like to encircle quantities that I think the audience should pay attention to. So far I've been using node from tikzpicture, styling it with rounded corners so it looks "soft". I was ...
1
vote
1answer
38 views

Tikz Loop Size Different (Make It The Same!)

\documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, calc, chains, positioning} \begin{document} \begin{...
1
vote
1answer
55 views

Align node text in tikZ graph

I have the following tikz picture but I can't figure out how to properly align the characters on the left (A,B,C,D,E). I'm pretty sure there's a better way than how I did it with the node labels. Any ...
1
vote
1answer
97 views

Text auto resize to fit a node

I need to autoscale a text to fit inside a static node which can't change its size. The code I'm actually using is \node[text width=3.75cm] at (0.5*\width,\titley) { \begin{center} ...
1
vote
1answer
62 views

Tikz: positioning of plot within node?

I would like to use \begin{axis} and \addplot within a node, as follows: \begin{tikzpicture}[xscale=0.5,yscale=0.5] \pgfmathdeclarefunction{gauss}{2}{ \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)...
1
vote
1answer
36 views

Compiling problem, connecting nodes thru edges is not working

I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on ...
1
vote
1answer
205 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 ...
1
vote
1answer
116 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 ...
1
vote
1answer
108 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 ...
1
vote
1answer
153 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 ...
1
vote
1answer
60 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 ...
1
vote
1answer
81 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 ...
1
vote
1answer
375 views

Label edges of Forest tree leaves to a free node

My current code is below, formulated directly from the forest package documentation style. \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} for tree={circle,draw, s sep=...
1
vote
1answer
4k views

How to set circuitikz node label position in \draw mode

I'm having trouble when trying to position a label of a circuit element in \draw mode. \documentclass{article} \usepackage{tikz} \usepackage[american, siunitx]{circuitikz} \begin{document} \begin{...
1
vote
1answer
998 views

Mindmap Tikz fit size

I would like to fit all text into nodes to my mindmap diagram I have tried with "text width" but I do want different sizes for nodes (depending on parent/children relationship). Also would like to ...
1
vote
1answer
163 views

How can an arbitrary grid of squares be drawn of various shapes and colored edges?

I am trying to see how to approach drawing a diagram like the following: I would like to be able to specify the position of each visible square individually, rather than using a TikZ loop of some ...
1
vote
2answers
262 views

How can I draw a full circle at the origin when I have the y-axis to the left and the x-axis in the bottom?

I am trying to draw a circular node at the origin,while keeping the y-axis to the left and the x-axis to the bottom. The node results to be a quarter of a circle. How can I keep it full circle while ...
1
vote
1answer
411 views

Aligning Graphics inside a Tikz Node?

I'd like the top of the first image to align with the top of the table, and then the second image's right side to align as well. See crappy paint drawing for reference: Code: \begin{center} ...
1
vote
1answer
242 views

Two tikz figures (with colored areas) next to each other

I would like place to figures/graphs next to each other. So far, I've managed to create the first figure and parts of the second figure. I don't know how to place them next to each other and how to ...