{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

1
vote
1answer
44 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
263 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
184 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
57 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
80 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 ...
11
votes
1answer
1k views

TikZ: anchors of special node “current page” seem to be incorrect in landscape

I've got a document that I wish to format in landscape in conjunction with some material added as an overlay via TikZ. I can get everything correct if I create a portrait page, but not if I create a ...
2
votes
2answers
166 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
87 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 ...
9
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
159 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
157 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
91 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
54 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
184 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 ...
3
votes
1answer
63 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 ...
5
votes
4answers
776 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. ...
1
vote
1answer
124 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
413 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: ...
31
votes
2answers
52k views

Adjusting font size with TikZ picture

Taking from the PGF manual, \begin{tikzpicture} \draw [help lines] (0,0) grid (3,3); \coordinate (a) at (rnd,rnd); \coordinate (b) at (3-rnd,3-rnd); \draw (a) -- (b); \node (c) at (1,2) ...
2
votes
2answers
102 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 ...
17
votes
2answers
2k views

Highlight a group of nodes in a tikz tree

To make it simple, I want to highlight a group of tikz nodes like in the following picture It was borrowed from the JLatexEditor. I would like to know which Tikz commands I can use to do the job in ...
5
votes
3answers
1k views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
2
votes
1answer
224 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
210 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
340 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 ...
5
votes
2answers
760 views

Connect Tikz nodes via two parallel arrows

I am just starting to learn using Tikz and am a little lost within its seemingly infinite amount of options and possibilities. What I am trying to do is visualize a few Matlab function interaction ...
3
votes
2answers
112 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
69 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). ...
128
votes
1answer
34k views

Manual/automatic line breaks and text alignment in TikZ nodes

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE). Is there a way to make lines break automatically at some specified width? And can I ...
4
votes
1answer
662 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 ...
2
votes
2answers
402 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
88 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
93 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 ...
2
votes
1answer
111 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
300 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 ...
1
vote
2answers
62 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
42 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
90 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 ...
8
votes
3answers
15k views

TikZ: How to connect nodes and specify line direction?

When drawing a line between two nodes in TikZ, you can specify the anchors on the beginning and end nodes in order to control how the line is drawn. I would like to specify the anchor on the ...
3
votes
1answer
232 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 ...
4
votes
0answers
90 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 ...
2
votes
1answer
115 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
140 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 ...
7
votes
2answers
375 views

Automatic connection of text points in tikz-qtree

I have to draw pictures like the following a lot: I want to use tikz-qtree, since I have a lot of trees and this package simplifies things considerably. Right now I use the following code, since it ...
1
vote
2answers
616 views

Draw a tree with variable node number

I would like to draw a tree in tex that is more like a sketch of a tree: It should contain variable node numbers. Important is, that the dots are contained in the tree drawn. Is that possible with ...
4
votes
3answers
2k views

TiKZ matrix of objects

I am drawing diagrams which consist of grids, some cells of which are filled with circles, like this: I created this picture with \begin{tikzpicture}[scale=0.6] \draw[shift={(0.5,0.5)}] (0,0) ...
5
votes
1answer
500 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
148 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
72 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 ...