{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

1
vote
1answer
48 views

nodes near coords = value + word

In the following histogram from my.dat I would like that nodes near coords take the value of the number followed by a text. For example: nodes near coords = {<Label> from \cite{<Cite>}} ...
4
votes
2answers
287 views

Problem with tikz and rotating labels

I am fairly new to LaTeX and especially to tikz. I tried to draw a directed graph which actually turned out the way I wanted it to. I don't know how well written this code is, but it works. Code in ...
2
votes
1answer
215 views

With TikZ, is it possible to split a node horizontally and vertically?

With TikZ, is it possible to split a node horizontally and vertically? What I have so far is: \documentclass[tikz, border=10pt]{standalone} \usetikzlibrary{shapes} \begin{document} ...
4
votes
1answer
59 views

“node contents” key not working with “\node at”

When I try to use something like \node[node contents={Test}] at (0,0){}; an error is throw : Use of \@next doesn't match its definition. To make it works, I can change the syntax to \path ... ...
1
vote
1answer
87 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 ...
2
votes
2answers
187 views

Adding extra texts to nodes in tikz automata

I want to draw a diagram like the one shown below. However, the nearest I can come up with is the following code. \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} ...
4
votes
1answer
93 views

Tikz \subnode positioning

I have a problem with \subnode positioning when coordinates are negative. The sample code below works well, if the third subnode is commented. Otherwise, all positions are broken. How can I prevent ...
10
votes
1answer
5k views

Draw a graph in Latex with Tikz

I am interested in outputting this graph in latex using tikz: So far I got this: and my tikz code is \begin{tikzpicture} \node[shape=circle,draw=black] (A) at (0,0) {A}; ...
3
votes
1answer
169 views

Tikz foreach does not work well

My goal is to create a complete bipartite graph with assigning numbers to the vertices. My idea was to use \foreach, which worked well for creating the vertices, but I couldn't add the numbers. What ...
2
votes
2answers
169 views

Node made on label and not position tikz

My question might be really dumb, I'm new with tikz, and I might not understand well the difference between a draw and a node Here is my picture \begin{tikzpicture} \draw[thin,ball color=red] (0,0) ...
1
vote
1answer
97 views

Node xshift with variable length/width

I am a beginner at working with LaTeX and especially tikz. I would like to generate a block diagram with a variable width in between the blocks, depending on the text of the arrow in between them. ...
1
vote
0answers
31 views

space inside tikz node [duplicate]

Why is there no space between the \x number and the text in my tikz nodes? There is a space in the final one in which I manually inputted a number instead of using a forloop. That's what I'd like the ...
1
vote
1answer
58 views

Adjusting fill=white in Tikz

In the MWE below, I'm looking for a way to adjust the fill=white boundary so that it doesn't interfere with the two arrows. If I remove the fill=white stipulation, there is ONE dot in the dotted arrow ...
2
votes
1answer
196 views

How to nicely place two heaps next to each other

I am quite new to latex and I have a question on how to place two heaps of this size nicely next to each other in latex. For example: \[\begin{tikzpicture}[every node/.style={circle,draw},level ...
5
votes
4answers
781 views

How could a circle of circular images be created?

I want to create a little image for some slides for the purpose crediting a team for some work. I want a set of images to be set around a circle path and each of the images to appear as circles also. ...
3
votes
1answer
65 views

Horizontal spanning width not matching up

I am using TikZ nodes within a tikzpicture environment to achieve the placement of all my subfigures. In the attached figure, it can be seen that in the second row, the total horizontal width exceeds ...
1
vote
1answer
129 views

How to center first node in Forest diagram

I want to horizontally center the first node Sing(f)=V(x,y,z). Everything I've tried so far won't work but frankly I don't know that much about Forest. My Code: ...
7
votes
2answers
456 views

How do I format text inside a node?

I'm making an academic family tree and I'd like to put a couple of bullet points of info for each person. I'm just starting with LaTeX, so this is the simplest code possible: ...
2
votes
2answers
114 views

Placing a label in specific corner of the chart

I plot two time series with pgfplots in one chart. I have a legend in the top right corner. Now, I would like to add a label (saying "Correlation = 0.86") in the top left corner. I have tried a lot ...
3
votes
1answer
247 views

TikZ node newcommand : pass color as argument

I need to create a row of circles (colored markers) followed by some text. See the image below. I achieve this using the following code. \begin{tikzpicture}[scale=2] \matrix[nodes={minimum ...
6
votes
2answers
222 views

positioning a node relative to multiple nodes

I would like to place a node relative to multiple nodes. In this post, the calc library is suggested in one of the answers. In the below picture, the centered node (E) is not placed in the exact ...
12
votes
1answer
353 views

Tikz: Cutting parts of the top and bottom line of a node of type rectangle

I am trying to cut the bottom and top line of a standard rectangle. What I have now, is a rectangle that looks like: Which was the result of: \node [rectangle,draw=black,rounded ...
3
votes
2answers
119 views

horizontally align group of nodes with respect to coordinate

I have one node (or rather, a coordinate) and a couple of nodes which are aligned in one "row" (via right=of, left=of). They are aligned below each other (via below right=of), \documentclass{article} ...
2
votes
1answer
71 views

Why does `shape aspect` not work for rectangular TikZ nodes?

The documentation of TikZ seems to indicate that shape aspect is available for all node shapes. However, the command is only available if shapes.geometric is loaded and for some shapes (e.g. diamond). ...
2
votes
2answers
417 views

Tikz: Simple decision tree (node connections)

I am trying to reproduce the following So far I got this: \begin{tikzpicture}[] \small \node[] (AB) {$A \succeq B$}; \node[]{} child{node[chance]{C} edge from parent ...
3
votes
1answer
89 views

How to connect nodes with an arrow TikZ?

The arrow connecting the bottom blue rectangle "Update E from H" to the red diamond "Done" has two discontinuities. How can I fix my code below to connect these lines at the empty nodes? ...
5
votes
1answer
95 views

pgfplots: Pointwise Positioning of Explicit Point Meta

I am drawing several diagrams like the following one: I would like to label the important points with $P_1$, $P_2$ and so on. The problem is that there is no global position for the nodes that fits ...
1
vote
2answers
339 views

Draw a circular node with a sine cirve in it to resemble the symbol a short sine wave

How can I do this in TikZ: I want to draw a circular node with a sine curve in it to resemble the symbol of a short sine wave like in the diagram shown in the link below. I can draw a circle but I ...
2
votes
1answer
127 views

Getting edges to curve around other nodes

I'm trying to draw a state transition model, and I'm having trouble getting the edges to going under a node instead of across it and other edges along the way. I've tried experimenting with in/out ...
1
vote
2answers
64 views

Showing state communication with arrows as concisely as possible

I am attempting to show communication between states in a Markov process, basically something like this, although the arrow angles aren't of any importance, simply having that relation between the ...
1
vote
1answer
44 views

Using fit for a box through a node

Hi i try to use the command fit to make a box around nodes. But the edge nodes should be only half in the box. \begin{tikzpicture} \node at (0,0) (CE1) ...
2
votes
2answers
97 views

Draw rectangular nodes defined by opposing corner coordinates with vertically centered text

I've got some coordinates in a tikz-picture and I'd like to draw some rectangles defined by two opposing corner coordinates. The seemingly easiest way to do that I found with this answer: Placing a ...
4
votes
0answers
92 views

Hyperlink a rotated nodepart

I would like to have the entire node part a link. But, it seems that once you rotate, hyperref has issues. The reference below say to place the rotated content in the hyperlink, but not sure how to do ...
3
votes
1answer
257 views

trigonometric tikz

I modified someone's code and get the trigonometric graph I want. But I wonder if there is an easier/elegant code than this. Specifically, I'd like to have an automatic node setting instead of ...
2
votes
1answer
120 views

Adding a legend with connector to a picture with overpic and tikz lead to a misspositioning of the bottom left corner of the tikz picture box

I try desperately to make a macro which allows me to simply add a circled number with connector on a figure. To do that, I try to use into the command \put of overpic a tikz function which makes the ...
7
votes
1answer
151 views

Static labels on rotating arrows in TikZ

Update after answer: After employing the very helpful answer below, my animation now looks like this, and all labels are "glued" in place. Thank you very much!* Original question: I have the ...
5
votes
1answer
547 views

Tikz: two edges path connection

Is it possible to have a two-edge path, as in the picture below? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzstyle{status} = [rectangle, ...
4
votes
1answer
157 views

Tikz: multi-line vertically aligned node

Can I align these multi-line nodes vertically? \documentclass{article} \usepackage{tikz} \usetikzlibrary{ fit, positioning, matrix, } \begin{document} \begin{tikzpicture} \tikzset{ ...
0
votes
0answers
74 views

How to create arrow heads partially perpendicular to the node

I'd like to draw a filled arrow head that smoothly extends the line itself and then bends outwards on both sides until it is tangential to the outline of the node it points at. It should make the node ...
2
votes
1answer
60 views

draw small lines

I have the following scenario tree \begin{forest} [,name=a,for tree={s sep=50pt,l sep=5cm,dot,grow=1}, [ ,name=b, edge=dashed [ ,name=c, edge=dashed ] [ ,name=i, edge=densely ...
3
votes
2answers
565 views

Placing a rectangular node in tikz by specifying two opposing corners

In \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (bottom left) at (10,10); \coordinate (top right) at (20,20); \draw[rounded ...
3
votes
3answers
104 views

Special connexion with a node (TikZ)

I want to connect a rectangle with a circular node using an arrow, as in the picture below (to the right). The problem is that I have to specify very arbitrary coordinates (e.g. -2.97 in the code ...
0
votes
0answers
32 views

Styling parts of a split node in Tikz [duplicate]

Using the following code, I can currently produce the simple first multi-part node in the image below. Is there a way to set the style for individual node parts such as a different background color ...
1
vote
1answer
130 views

TikZ: Move text a little higher

What do I have to change in the following definition, so that the text is a little bit higher? \newcommand{\header}[3]{% \begin{tikzpicture}[remember picture,overlay] \node [rectangle, ...
4
votes
1answer
698 views

Trasform Friggeri-CV to A4

For some weird reason the otherwise very nice template that can be found here http://www.latextemplates.com/template/friggeri-resume-cv is not A4-paper but something else. If, however, I simply add ...
1
vote
1answer
153 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 : ...
3
votes
1answer
184 views

How to project nodes created by relative position on curve to axis and below?

In case I have two curves created with pgfplots I can draw a line between two relatively positioned nodes on each. In this example there is an arrow between the points at 50% of each curve. ...
1
vote
1answer
86 views

Can I have tikz nodes formed as arrows?

I know that I can make nodes that are squares or circles: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (foo) [draw] {foo}; \node [draw, ...
6
votes
1answer
192 views

Add break node to plot in pgfplots

I was able to 'break' the vertical axis using pgfplots, but some issues came along with it: Most importantly, I can't find how to add the 'break sign' (the two parallel lines) to my plot as well, ...
4
votes
2answers
270 views

Draw Vector Operations

I would like to draw something like this: I need to display a lot of combinations of such operations, so my question - is there any effective way to draw such vector operations?