{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

10
votes
1answer
135 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
343 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
70 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
49 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). ...
99
votes
1answer
22k 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
150 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
85 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
63 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
38 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
31 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
110 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
48 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
32 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
60 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
3answers
11k 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
110 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
47 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
42 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
80 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
340 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
538 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
622 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
198 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, ...
3
votes
1answer
63 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
41 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
32 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 ...
5
votes
2answers
3k views

Tikz right-angle edges between nodes

In the example below I'd like to have angled edges which just go vertically and horizontally. My aim is to get the edges like in this image (the rounded edges are not a must) : Here is my minimal ...
3
votes
2answers
141 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 ...
2
votes
3answers
70 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
29 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 ...
24
votes
2answers
2k views

Tikz: purely vertical arrow from nodeA.south to nodeB.north

I have the following tikz code % compilation command: pdflatex --jobname=Diag-f1 Diag.tex \documentclass{book} \usepackage{tikz} \pgfrealjobname{Diag} \begin{document} \beginpgfgraphicnamed{Diag-f1} ...
1
vote
1answer
69 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, ...
1
vote
1answer
70 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
90 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. ...
4
votes
2answers
222 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?
1
vote
1answer
55 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, ...
29
votes
4answers
7k views

How to place a node in the middle of an arc?

I think it is a simple question, but I didn't find the answer yet. The code I'm using is the following: \draw[->](1,0) arc(0:-30:1) node[midway]{$30$}; But in this way the node is placed at the ...
6
votes
0answers
104 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, ...
1
vote
1answer
79 views

Displaying prime number differences

I am trying to make several nodes in my project like this: \Tree [.S This [.VP ] ] I have searched with no results. I want something like
5
votes
1answer
67 views

Key names of the axis limits when not set explicitly

In the minimum working example below I use the keys xmin, xmax, ymin and ymax for calculations of coordinates for annotations. However, this only works when the axis limits are set explicitly in the ...
4
votes
1answer
53 views

Plot instance missing in PGFplots

I have written a small macro to draw triangles with slope in PGFplots axis environments. I try to draw two of these triangles. However, the first one is missing for some reason. How can I resolve ...
2
votes
1answer
58 views

Node position based on two nodes

I'm trying to position nodes with tikz to draw a schematic. I would like to position nodes containing explanations text stacked below each other and at a specific x shift from the related word. My ...
1
vote
1answer
45 views

How to connect to the corner of a rectangular node with a thick line without overlap?

I would like to connect a thick line with the corner of a rectangular node. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node (rect) at (0,0) [draw,minimum ...
3
votes
2answers
312 views

Calculation of coordinates for TikZ annotations in PGFplots axis environment

I'm trying to do some annotation with TikZ in a PGFplots axis environment by means of nodes. However, the placement of the nodes is going wrong all the time, see the minimum working example below. How ...
3
votes
1answer
45 views

Number format for a node

In the following minimum working example, how do I change number format that is used for the node? For instance, cut off the number after 5 digits. \documentclass{standalone} \usepackage{currfile} ...
3
votes
1answer
55 views

Add nodes with pgfplots

I was trying to add nodes inside axis environment but nothing came out. I actually tried several ways... Any help is much appreciated. \documentclass[11 pt, a4paper]{article} ...
2
votes
1answer
108 views

different coordinate frames for anchors and backgroundpath in node shapes?

I want to create a triangle shape for flow diagrams, so far I succeeded but the anchors I have defined are badly placed. This seems to be wired as I have just copied and pasted the code from the ...
1
vote
0answers
23 views

Refer to an equation inside a node in a graph

I am not very familiar with the tikz package. Reading here and there on internet, I managed to do this \begin{tikzpicture} [node distance=.8cm, start chain=going below,] \node[punktchain, ...
1
vote
1answer
165 views

Set node distance between borders in tikz

From \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{shapes,arrows,positioning} \begin{document} \tikzstyle{block} = [draw, rectangle, minimum height=3em, minimum width=6em] ...
5
votes
1answer
2k views

TikZ: How to encapsulate shade in node?

I have this shaded circle: \shade [ball color=black!80!white] (0,0) circle (1); Is it possible to encapsulate it with node style and fixing the circle radius?