# Tagged Questions

{nodes} is about nodes in {diagrams}.

325 views

### Remove node name from tikz style

I have this code which I have adapted for my use case. I am creating a bunch of nodes and connecting them together. The problem is, the node name appears in the figure (namely h1,... and v1...). I ...
973 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? ...
379 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) ...
484 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? ...
434 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 ...
205 views

### Fit node to another node in a separate 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 ...
559 views

411 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, ...
731 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: \...
5k 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) ...
4k 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 ...
606 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 ...
338 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 if-...
110 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} \...
243 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 ...
166 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} \usetikzlibrary{qrr....
188 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 ...
122 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 ...
99 views

### Variable Input/Output node using a new command [closed]

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 ...
861 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 ...
314 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 ...
481 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 ...
289 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 ...
251 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} \...
313 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 \setbeamerfont{MyMiniSize}{size*=...
192 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 ...
177 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 ...
92 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 ...
104 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, ...
306 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} \usepackage[T1]{...
178 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}[ ...
949 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, ...
841 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. ...
556 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 ...
195 views

### TikZ node positioning on edge parameter/label [closed]

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, ...
273 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} \...
668 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. \usetikzlibrary{...
148 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 ...
200 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 ...
219 views

### How do I store the x or y value of a named node in tikz \draw?

A big part of the question above has already been answered: "Use the calc tikzlibrary and the let syntax". \begin{tikzpicture} \draw [help lines] (0,0) grid (4,4); \node (A) at (2,1) {A}; \...
341 views

### Remember coordinate in nested tikzpicture points to a weird place

I have problems with remembering the coordinates of names defined in nested tikz pictures. Look at the following minimal working example: \documentclass{article} \usepackage{tikz-qtree} \newcommand{\...
4k views

### Adjust position of node label

In the MWE below, how can I get to adjust the position of the node labels? Note that the nodes are defined by dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1} but I cannot figure out how ...
270 views

### Passing options to “append after command”?

With minimal tikz knowledge, I try to create a node like shape, which has two filled circles in it. Here is my attempt, which suffers from these problems: The appended path components seem to be ...
117 views

### How to automate right node alignment for labels from table AND marker size AND marker color of scatter plot?

Problem: Labels from table are placed right, but overlap. Is there a way to automate alignment of the labels near nodes so that labels do not overlap? This is a small example but I have bigger table ...
108 views

### How to place a node of a certain shape with one side on a line in TikZ

I would like to have an arrow shaped node to be positioned with its tail on the vertical axis of my reference frame. Here' were I got: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
23 views

### How to divide circle multipart nodes in tikz [duplicate]

I would like to get multi part node with vertical line between lower nodepart. Something like this: My code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \...
364 views

### How should I read the current TikZ “label distance”?

I decided that I don't like the behaviour of the label functionality of TikZ. I want to get labels that are positioned using the anchor opposite the specified label angle. So for example if the label ...
2k views

### Tikz labels are shifted dependent on the letters size

General description of the intrinsic behavior The labels in a tikz picture are shifted (e.g. by above) exactly to the extreme of the letters in the labels, i.e. it takes the descender (see Wikipedia'...