{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

4
votes
1answer
25 views

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
3
votes
2answers
56 views

Tikz \draw as part of style (Drawing something inside each node of certain type)

I'm currently learning how to use Tikz and was looking into drawing automata (specifically Simulink-like state models). Currently, I'm making a style that should reduce my efforts to a minimum when ...
4
votes
2answers
60 views

Adjust node level using phantom node

Consider the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
1
vote
2answers
43 views

Tikz obtain node coordinates

In tikzpicture, how do I get a single coordinate of a node? This is the circuit I'm making, and I need to know the x coordinate of the node (opamp.out) so that i can make R2 vertically aligned with ...
5
votes
2answers
108 views

Label above node in TikZ

I wish to add a label above a node that already contains a label. \begin{tikzpicture}[scale=0.8,every node/.style={draw=black,circle}] \node (a) at (0,0) {a}; \node (b) at (2,0) {b}; ...
4
votes
2answers
128 views

Draw matrix with specific style in TikZ

I'm wondering how could I draw a matrix like that: I know how to draw a simple matrix: \documentclass[journal]{IEEEtran} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usetikzlibrary{matrix, ...
4
votes
2answers
83 views

Two-lined brace in tikz node

I want to produce a timeline in the tikzpicture environment that looks like this: But my code, gives me the following: So I need the brace around both lines of my node! My code now looks as ...
1
vote
1answer
46 views

Textbox Nodes Won't Appear In Diagram

I am trying to create a simple venn diagram with the labels a,b,c with a U in the right hand corner of the box like this picture: I have created the venn diagram the way I wanted to, but I can't ...
1
vote
1answer
80 views

How can I put a minipage that fits to the actual line width inside of a TikZ Node?

Question I would like to put a minipage environment inside of a tikz node. I know this is done already with the align=left command, but if you set a minimum width of the node to \linewidth, then the ...
5
votes
1answer
125 views

How can I draw a relation with rectangular nodes?

I am trying to use nodes to draw a simple relation in two figures. Basically what I want looks like this: How can I do that using tikz? The two relationships should be next to each other. I think if ...
3
votes
2answers
108 views

How can I add more coordinates to standard TikZ shapes?

Question I would like to know how to add an arbitrary number of coordinates to the default shapes of TikZ—particularly to the side of a polygon. Sample This is similar to ...
2
votes
2answers
68 views

How to change the size of the name of a node, in a tikzpicture

This is my code, in this code, the names of the nodes appeared very small, How could I modified this size? \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} ...
7
votes
4answers
242 views

With TikZ is it possible to pass the node content through a preprocessor?

I've written a macro that scans its content for illegal characters and then changes them to something more appropriate. In the following example, the macro scans for _ and replaces them with ...
1
vote
0answers
37 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
79 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
63 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
139 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
59 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
57 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
39 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
113 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
97 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
81 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
62 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
104 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
131 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
62 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
92 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
139 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
140 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
159 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
160 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
133 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
130 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
129 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
160 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
92 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
88 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
776 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
102 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
119 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 ...
4
votes
2answers
270 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
239 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
112 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
60 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
153 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
231 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} ...