{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

7
votes
1answer
97 views

How to “outline” a path in TiKZ?

I have a drawing in TiKZ (of a graph, say) and I want to highlight two paths in the drawing. Is there a way to do that using my already-defined node names, without explicitly making new coordinates? ...
4
votes
2answers
40 views

Circuitikz: arrows on the path and changing directions of arrow with variable resistor

For my R_2(t), I would like the arrow bottom left to top right of the resistor. Is there a way to swap the arrow direction? Also, above the non-linear resistor, how can I add an arrow on the path? ...
1
vote
1answer
48 views

Tikz: How to combine orthogonal edge syntax with coordinate calculation? [duplicate]

I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example: \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) ...
11
votes
1answer
311 views

Organigram in Latex. Vertical distance between nodes

I want to draw a organizational structure in form of an organigram. I found this solution and tried to adapt it. The code: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
51 views

Automatic pin position on pgfplot when using custom axis

I'm trying to put automatically label several plots. For this purpose, I just discover the pin option to add it to the plots. This solution works rather well, and semi-automatically. However, when ...
4
votes
1answer
40 views

Fit node to another node in a seperate scope that has been shifted and canvas transformed

I want to fit a node to another node which is defined in a different scope which has been subject to the options "(x)shift and transform canvas" (see example code and image). Without any canvas or ...
3
votes
1answer
59 views

Different shading for multi-parted tikz node

Please consider MWE below: \documentclass{standalone} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \usepackage{lipsum} ...
12
votes
5answers
258 views

How to force nodes on different lines to have equal y-positioning

I have, hopefully, a very simple question. I use tikz to make a figure for confirmatory factor analysis (CFA). In the minimal example there a 6 arrows going from the circle to a fixed place. However, ...
2
votes
0answers
57 views

Node at each end of arrow, Tikz

I'm drawing a vertical arrow and I want to have a node at each end, but tikz seems to be putting the lower node in funny places: This is the arrow with the node above in the right place: ...
4
votes
0answers
65 views

What exactly does `inner sep` mean when node shape is circle

inner sep is not behaving as I would expect: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] \coordinate (P1) ...
9
votes
1answer
307 views

Custom, space-saving ellipse as TikZ node shape?

in some applications, one wants to use ellipses as node shapes in figures, e.g., when in the literature on a subject typically uses ellipses to denote certain things in figures. The problems with ...
9
votes
1answer
262 views

Connecting nodes with brace in TikZ

How would be possible to put a brace instead of a "line" connecting nodes and add some text above it with TikZ?
5
votes
2answers
91 views

pgfplots: relative node positioning in axis cs

I have got a file to plot with pgfplots. For convenience I'd like to define a measure in the plot. Unfortunately the relative positioning seems to give weird results. If I define the node coordinates ...
1
vote
0answers
60 views

Issue with `pgflibrary` and MiKTeX

After reading "Tikz shape similar to rectangle with selective drawing of borders," I tried to compile the following code: \documentclass[tikz]{standalone} \usetikzlibrary{chains} ...
5
votes
1answer
74 views

trouble getting Tikz matrix to compile

In advance of a summer class I'm teaching, I decided to try compiling my notes, which I haven't touched in any way, shape or fashion for 4-5 months. However, in that interval, I've updated laTeX ...
3
votes
1answer
33 views

pgfkey to set anchor for negative values in a bar chart

I have a ybar chart with positive and negative bars and "node near coords". I'd like to have the nodes of pos. bars at the top and nodes of neg. bars at the bottom/under the bar. With the following ...
6
votes
1answer
43 views

Node centered instead of flushed right

Why the this three nodes are centered instead of be flushed right ? \documentclass{article} \usepackage{tikz,fourier} \begin{document} \xdef\LW{.99*241pt}%\linewidth \xdef\BLS{\baselineskip} ...
5
votes
1answer
123 views

How can I get the borders of contiguous nodes to perfectly overlap?

Why aren't the vertical borders of my nodes overlapping, as the horizontal ones do? How can I force them to overlap (thereby preventing the vertical lines between nodes from looking stronger) and ...
4
votes
1answer
160 views

Use TikZ “circle connection bar” with non circular shapes

Is there any way to use the circle connection bar feature from the mindmap Tikz library with non circular node shapes? Here a non working Example: \documentclass[]{article} \usepackage{tikz} ...
4
votes
1answer
104 views

tikz def node name (or reference) for nodes create using the def

I have the following definition in order to create a node with cylinder shape \def\dnc[#1,#2,#3,#4]#5{ \node[draw, cylinder, alias=cyl, shape border rotate=90, aspect=1.6, % minimum height=25, ...
2
votes
1answer
41 views

Can't reduce space with \vskip between parts of vertically splitted rectangle

In a multipart rectangle i want to reduce the space between the parts. For a horizontally splitted rectangle i achieved that with an \hskip after the \nodepart command. For a vertically splitted ...
4
votes
0answers
39 views

Variable Input/Output node using a new command

How can I create a variable input/output node using a new command as in the following picture Say for example, I know that the node will have n inputs and m outputs, which I enter the name as an ...
3
votes
1answer
55 views

Vertical separation between text and first item inside nodes not consistent

The appended code yield the following slide. Although the code of the four rectangular nodes equals each other the vertical separation between the text and the first item within the rectangle is ...
33
votes
5answers
27k views

TikZ set node label position more precisely

This seems like it should be really easy but I can't seem to find it anywhere... I'd like to be able to fine-tune the positioning of a node label. I'm aware of the ...
2
votes
1answer
109 views

TikZ: Drawing double-headed arrows within a node

Am using the amazing TikZ software to draw figures for a book chapter. Am very pleased with the quality of the figures I've been able to create. Unfortunately, I've gotten a bit stuck with just one ...
1
vote
0answers
75 views

Problem with PGFPlots and Tikz fading library with disappearance of nodes near coords and irregular fades

It seems like whenever I turn on Fading from Tikz Fading library, the nodes near coords parameter to the axis environment is not processed by PGFPlots correctly. I am attaching the code and the image ...
5
votes
2answers
104 views

Tikz: How to display properly some linked nodes?

I have created the following diagram using Tikz, is there anyway to show it properly? (As it is, it is shown with all the nodes below the last one, so it is a mess) \documentclass{article} ...
3
votes
1answer
114 views

Add more anchors to standard TikZ nodes with TikZ 3.0

In order to define additional anchors in TikZ, I use the code from this popular answer. Unfortunately, after updating to TikZ 3.0, the code does not work anymore. I now receive several errors and my ...
4
votes
1answer
71 views

Creating a directed graph with some cosmetic structure

Via utilizing Tikz, I would like to create a graph such as the following : So I would like to have a classical directed graph, where there is some text in each node. Moreover there is a single ...
0
votes
1answer
73 views

Tikz nodes moves after double building

I want to plot 4 graphs in one tikzpicture in a 2x2 grid, using groupplot. Also I want to put some arrows from nodes in the first three plots to nodes in the last one. To do this, I try to use ...
3
votes
1answer
69 views

`node distance=#1` appears to be ineffective under TikZ 3.0

I was not having this problem before I upgraded (note node distance=5in): \documentclass[tikz]{standalone} \usetikzlibrary{arrows} \tikzset{ node distance=3cm, graph vertex/.style={ circle, ...
3
votes
2answers
61 views

Tikz aligning text in nodes

I am working on a Tikz picture of a calendar. The headings of the calendar are the months and I add them with nodes. But they aren't aligned. \begin{tikzpicture}[scale = 1.3] \path (0,0)node[minimum ...
1
vote
0answers
48 views

pgfplots change fontsize to 1pt nodes near coords

i want to change the fontsize of the "nodes near coord" and also the y tick labels in a pgfplot to 1pt (no worries, that's just of theoretical interest). I found that ...
2
votes
2answers
158 views

Continuous node in flowchart using Tikz

How can I make the nodes connected without any block using Tikz? For example, I was trying to connect the arrows that returns to the do-loop when the decision making box (named as Condn) returns no. ...
3
votes
1answer
82 views

Tikz Spacing after horizontal line

I'm trying to draw an ornament after a horizontal line, with a small spacing between the figure and the line, but xshift doesn't seem to work when I connect the line to a node. I'm attempting to do ...
4
votes
1answer
48 views

can't access a previously defined node

I have the following code snippet. In that i define the node (B) with the coordinate operation. Unfortunately i can't access the node later on. LuaLatex exits with the error message: Package pgf ...
3
votes
1answer
69 views

Shifting a line with node joining nodes, where are nodes anchors?

Please, consider the following mwe: \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{arrows,calc,chains,positioning,shapes.callouts} \begin{document} \begin{tikzpicture}[ ...
5
votes
1answer
114 views

How to make halo around node with shading?

I am trying to do this (do not pay attention to red line above blue node and line in the node): By so far i have this: With this code: \documentclass[tikz,12pt]{standalone} ...
8
votes
2answers
2k views

How to nest a graph within a node in TikZ and draw edges between the graphs?

I'm trying to draw a graph and have a separate graph within one of the outer nodes. I seen this question, but I don't understand how the matrix nodes will help me. I would also like to draw edges ...
16
votes
1answer
338 views

nodes structure like file system

I would like to draw a picture that reflects some file structure. Below code works almost as expected. I need to adjust the connections between nodes so they don't start from the center of the bottom ...
2
votes
1answer
119 views

Tikz cylinder alignment and fit

I've tried fitting a cylinder to the height of both a block and another cylinder as shown in the code below. Cylinder 2 should fit exactly to the top edge of Block 1 and the bottom edge of Cylinder 1, ...
3
votes
1answer
93 views

Multiple overlaid rectangles as TikZ node

I'm trying to create a TikZ flowchart where I need to differentiate between serial and parallel streams. Here's an example with serial to parallel: I've managed to create a multiple stack of ...
6
votes
2answers
3k views

How to add a node in the middle of the line with tikz?

actually it's an easy question, but I could find an answer with Google or the included search on StackExchange ;) How do I add in the middle of the line a node with Tikz? I want somethink like this: ...
2
votes
0answers
55 views

TikZ node positioning on edge parameter/label

I wonder if there exists a trick to position a graph node (relative), based on a parameter (label?) of an edge leading to it? I mean a kind of time diagram, i.e. for example I have a timed automat, ...
1
vote
1answer
67 views

Drop shadow of node with pgfplot inside

I have this code: \documentclass[tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture} \node[drop shadow,draw,fill=green] { \begin{tikzpicture} ...
4
votes
2answers
107 views

How to reduce the space between nodes?

I want to make the nodes in the following vector-illustration touch each other. But no matter what I do to text width or node distance the distance between the nodes stays the same. ...
1
vote
0answers
129 views

Circuitikz: connection of nodes [duplicate]

I'm using the circuitikz library to draw some circuits. To connect two nodes with a square angle, there is the possibility to use |-, as in the MWE below for the connection of (a) with (b). However, ...
2
votes
1answer
69 views

TikZ nodepart enumeration

When I enumerate nodes I can write for example: \nodepart{sixteen}1 But I need to make nodes with numbers: twenty-one or more. How can I do that? When I write \nodepart{twenty-one}1 Latex ...
7
votes
1answer
228 views

inserting special border to tikz mindmap

Hi I would like to mark certain nodes of tikz-mindmap just an example is illustrated in the figure. Thanks in advance The minimal working code is here \documentclass[]{article} \usepackage{tikz} ...
2
votes
1answer
74 views

Tikz How to?: Shear flow distribution around a box; Adding rectangles to lines

I am trying to illustrate the shear flow distribution around two similar boxes for my students using Tikz. The result should look like the two following examples: From a previous try, I already ...