Tagged Questions

{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

1
vote
0answers
16 views

How can I make the node order for references in TikZ not matter?

Question I am wondering if it is possible to make the order of nodes irrelevant, such that references work regardless of when they are mentioned...like some kind of pre-parsing of the code that ...
3
votes
1answer
64 views

Thought bubble in latex

I wish to draw illustration nodes with text box as shown, But my latex is poor. Any startups?
5
votes
1answer
45 views

tikz-qtree does not work with node

I am trying to create a tree using the tikz-qtree package. But I keep getting the following error. ! Paragraph ended before \@@@@litlabel was complete. Here is my tex-file: \documentclass[a4paper, ...
2
votes
3answers
131 views

Strange graph in tikz

I want to make a strange graph in tikz. This graph has some nodes inside the nodes... like this figure: I tried this: \newcommand{\twonodes}[2]{% \begin{tikzpicture}[node distance=0.7cm] ...
1
vote
1answer
46 views

Tikz nodes with `fit=(top)(bottom)` slightly missized

I like to create textboxes via TikZ. I start with that flexible example. And, Yes :) I do create texboxes. Here it is. But I still have two problems.. Q1 I use fit to create light gray ...
3
votes
2answers
48 views

boundary around nodes corresponding to euler walk

How can one automatically draw the red line corresponding to euler walk in tikz. I tried using beizer curve, and a lot of other methods, but had to finally set coordinates manually to get somewhat ...
3
votes
1answer
36 views

node positioned by fit: how to center a node text?

I wonder why node's text of node positioned by fit is not centered? Edit: As suggested Peter Grill in his comment, I change previous MWE with more realistic example: ...
4
votes
2answers
108 views

Is there an easy way to have node border anchors centered on the borders?

I would like to place nodes with given distances relative to each other. For consistence with other drawings these distances have to be very accurate. Node border anchors are placed at the outer ...
2
votes
2answers
80 views

Tikz: connect two nodes

I have many nodes and want to connect two of them, but in such way that the path is not scratch off nodes, which are between these two like in the example below (I want to connect L_0 and R_0): To ...
4
votes
1answer
68 views

Filter tikz node text through macro

I would like to make a node style that "filters" the node's label (text) through a command, i.e. replace the node text with a macro, with the original node text passed as an argument to that macro. ...
1
vote
1answer
52 views

How to add a text label to a line in a block diagram

I'm very new to LATEX and I'm trying to set a block diagram and at the same time format it exactly as I'd like, please see my block diagram below: https://www.writelatex.com/1492096yphfwt#/3712155/ ...
3
votes
1answer
75 views

Overlapping labels in tikz barplot

I have a problem with the placement and size of nodes in my barplot. I changed the size in the code from \small to \tiny: every node near coord/.append style={font=\tiny} but, the numbers are still ...
5
votes
1answer
107 views

TikZ node label distance depends on length when using tikzstyle

When I include circle in the every node style, the distance from the label to the node depends on the length of the label: \documentclass{standalone} \usepackage{tikz} \begin{document} ...
3
votes
1answer
58 views

Why the background of a pgf fitting node with minimum width equal to another (backgrounded) fitting node's width is shifted?

I have two pgf fitting nodes: one below the other, left aligned, with different (unpredictable) widths, and I'd like them be backgrounded, with backgrounds of the same width. For this, I got help ...
4
votes
1answer
75 views

pgfplots One node or pin to multiple points

This has been driving me insane, I've searched and checked the pgfplots manual but can't find the relevant section: consider the snippet: \documentclass{article} \usepackage{tikz, pgfplots} ...
3
votes
1answer
107 views

Differences between paths drawn between nodes and coordinates in tikz

Referencing this very helpful posts and the Tikz manual, which states: Whenever TikZ encounters a whole node name as a “coordinate,” it tries to “be smart” about the anchor that it should choose ...
5
votes
1answer
139 views

How can I put text in squares?

How can I put text in squares? Please see my code: \definecolor{MainRed}{rgb}{.6, .1, .1} \def\bigrectangle{(-7,-1) rectangle (6.5,4.7)} \def\firstrectangle{(-9,0) rectangle (-5,4)} ...
5
votes
2answers
139 views

Small tikz decorated arrow between words inside a tikz node

Effectively, what I want to do is very simple but I am not sure where to go. I have several nodes of the following form \node (1) at (0,0) {text1 $\rightarrow$ text2}; \node (2) at (0,2) {text2 ...
5
votes
1answer
125 views

Setting minimum size for tikz node using default unit length

I have two node styles with a minimum size set to 7mm and they look perfect: \begin{tikzpicture} \tikzstyle{style1} = [circle,draw,fill=white,minimum size=7mm,font=\Large]; ...
3
votes
2answers
117 views

How to add frames around a group of nodes in tikz

I have this beautiful tikz diagram of my program that I have created : The different colours correspond to different programs, so I would like to know if there is a way to add a frame around each ...
3
votes
1answer
95 views

Horizontal Movement of a Rotated Label in PGFPLOTS

In the following code I have a long label at one of the arrow heads. I would like to rotate the label by 90 degrees and then place it right below the arrow head. I used the rotate option and the pos ...
7
votes
4answers
118 views

How to use the node distance to offset the start and/or end of an arrow with TikZ?

I want to draw an arrow where one of the end points is not actually attached to another node, and I want the length of the arrow to take into account the node distance of the node to which the arrow ...
4
votes
3answers
141 views

TikZ picture error: No node named n1 is known, inside a \foreach loop

I get the following error: ! Package pgf Error: No shape named n1 is known. when I try to compile this code. \documentclass[border=1mm]{standalone} \usepackage{tikz,pgfplots} ...
5
votes
1answer
77 views

Tikz sloped label on path

Any suggestion on how to get slanted text for the labels "Diapason", "Diapente" and "Diatessaron"? (PDFLATEX on Linux Lubuntu with texlive 2014) Thank you, A \documentclass{article} ...
3
votes
1answer
66 views

Centering a node on a path

Why the $\times 12$ is not centered on the path ? \documentclass[border=3pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[bob/.style={outer sep=0pt,text ...
0
votes
0answers
27 views

Multiline label for shape 'tape' in tikz [duplicate]

I would like to draw a tape in tikz with a multiline label in it. The normal way of just using \\ doesn't work here. MWE \documentclass[tikz,border={5pt}]{standalone} ...
1
vote
1answer
74 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, ...
3
votes
1answer
562 views

tikz node position

I have a diamond split in four triangles and I would like to write inside each triangle at it center and having difficulties with position. Please help me fix that problem.Thanks ...
3
votes
1answer
90 views

Multipart graph with linear and circular node patterns

I'm trying to draw a graph (PDF output of code below attached) that's a linear process, with a potentially circular element in it. As you may see in the upper picture, the the B,C,D elements aren't ...
2
votes
1answer
99 views

Rotate Tikzpicture including nodes

Is there any simple way to rotate a whole tikzpicture environment? If I apply the tikzpicture option [rotate=ang] nodes seem to be unaffected. In other words, I want to do ...
3
votes
2answers
204 views

Tikz-Connecting nodes with multiple lines

I am trying to reproduce the following image I made in "Power point". Although, there is no difficulty in designing the boxes, I find it rather hard to properly position the red and black lines. ...
5
votes
2answers
227 views

Tikz- complicated shapes as nodes

I'm trying to reproduce the following picture In this picture, there are some shapes that are repeated. For instance 5, 6, 8, 10 and 11. My idea is to use ./style in order to define these shapes ...
2
votes
1answer
100 views

accuratelly place a node above and left of another node

I am trying to draw a box which is defined as a node, next to another node. My code is \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ pipe/.style = { ...
2
votes
1answer
55 views

How can I place a node relative to a legend?

I'd like to place custom formatted nodes relative to the legend in a plot. The answer to Placing node relative to legend is a solution per se, but related to op's actual intent so it isn't helpful to ...
1
vote
1answer
58 views

Why is the pin's angle argument displayed as text?

I'm completely stuck with the syntax of the command options \node Here is my code line: \node [circle,fill=blue,scale=0.5,pin=60:$q_0$] at (9+90:15*4/30) {}; And it displays the same as if I had ...
4
votes
1answer
135 views

Split nodes in TikZ math nodes matrix with Beamer?

TikZ matrices and Beamer do not work smooth -- for example, we have to use ampersand replacement work around. Is there a similar work around that allow one to use \nodepart ? The MWE is this: ...
4
votes
2answers
183 views

tikz dash rectangle in nest nodes

I want to use dash rectangle in outer node but use solid rectangle in inner nodes. But my sample code below actually dashed all node for inner or outer nodes. \documentclass[tikz]{standalone} ...
2
votes
0answers
39 views

tikz align text to left inside node [duplicate]

I am trying to align node text to left but it seems below code still put the text at the center of node: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[thick] ...
3
votes
2answers
76 views

TikZ/ERD: node (=Entity) label on the inside

I'm trying to draw an ERD diagram. I recycled code from a couple of posts around here and added my own spice, finally ending up with: \documentclass[border=0.5in]{article} \usepackage{tikz} ...
2
votes
1answer
31 views

How to print in a node the \coordindex multiplied by a value?

I would like to print in a node the \coordindex multiplied by a value. Is it possible? now: node [ some code... ] {$\coordindex$} after (?) node [ some code... ...
8
votes
4answers
283 views

Tikz: Equal sized nodes with different text

I am new here to Tikz and I need to draw 2 rows of nodes that are identical in size but having different text of different length in it. Sure the upper and lower nodes should have enough room for the ...
3
votes
2answers
170 views

Scaling nodes in automata in TikZ, inside equation.

I fail to scale the nodes (which is what I initially wanted) of the following \documentclass{standalone} \usepackage{tikz} ...
1
vote
1answer
82 views

Gap between feedback edge of block diagram

How can I avoid the gaps at the branches of the feedback edges (arrows) in this block diagram? \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \usepackage{tikz} ...
14
votes
3answers
431 views

tikz, drawing a rectangle with spikes on borders

I would like to draw a scrabble board. On my long journey to do that, I would like to set nodes which I could use around the board. The grid, that I can do. Now I'am looking at coding for "triple word ...
6
votes
1answer
126 views

Arrow from brace to node

I would like to draw an arrow from the tip of a curly bracket to a node, but if I do the following, an extra arrow point is drawn just above the tip of the brace. \documentclass{article} ...
2
votes
2answers
165 views

How do I draw shapes inside a tikz node?

I know how to draw different shapes using tikz, like this: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) ellipse (1 and 1.5) (0,2.5) circle (1) ...
5
votes
1answer
161 views

Change node style in a tikz picture

I'm trying to change the node style so a node looks like a cylinder with a variable height. currently i'm using this code \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
2
votes
0answers
119 views

Beamer - Title page is perturbed when adding notes

I'm working on a Beamer presentation in which I want my notes to be along with a small preview of the current slide only (bigger than the default). I worked on the following MWE, which seems to work ...
4
votes
1answer
237 views

Customizing itemize inside a node in beamer

I am working with the MWE below and I am trying to do something that seems to be easy, but I cannot figure out. \documentclass{beamer} \usepackage{tikz} ...
3
votes
2answers
180 views

Tikz: How to Align the Text of simple Nodes?

I tried to put up a nice little graphic, to make an example for String-Matching. My Problem is the "b" is not aligned with a and c and i can't find a way to handle this: \begin{figure}[h] ...