{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

3
votes
1answer
71 views

Text alignment in nodes

Why 360 is not vertically aligned with Angle ? I changed text width but it's not better ... \documentclass[tikz,margin=3pt]{standalone} \pgfkeys{/tikz/.cd, BLS/.store in=\BLS, ...
5
votes
1answer
57 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} ...
1
vote
1answer
30 views

\fill left of a node using the positioning library

How can I position a \fill relative to a node? I would position a node in the following way, using the positioning library: \node (mynode) at (2,4) {text}; \node [left=of mynode] {o}; But if I try ...
5
votes
1answer
51 views

Minimum width for 2 nodes at once

In this MWE, I can put a minimu size by hand, but how determine it automaticaly: let say max width of the two nodes + 4pt on each side ? \documentclass[french]{article} \usepackage{tikz} ...
6
votes
1answer
91 views

Global use of values obtained in draw let

In one of my tikzpictures, I found an angle I labelled \n2. I would like to use this value to rotate a node. However, when I try, in the node options, rotate = \n2, I am told undefined control ...
2
votes
0answers
88 views

Lattice or Per Gelosia multiplication - how to avoid the use of the fp package

Is there a simple way to improve the harmony of the nodes in particular of the upper row and the right column distance ? Edit Thanks to egreg the node are more in harmony. Still : Is it possible to ...
7
votes
4answers
252 views

How to label the curve of a function at any point along it in tikz?

In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error ...
5
votes
1answer
73 views

Error with newcommand and \def

Can anyone ples help with this problem: \documentclass[fontsize=12pt,paper=a4,headsepline]{scrartcl} \usepackage{chemfig,chemmacros} \def\nc{\arrow{0}[,0]} \begin{document} What it is: ...
4
votes
1answer
93 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 ...
4
votes
2answers
129 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
91 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) ...
7
votes
1answer
162 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? ...
3
votes
1answer
82 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
65 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 ...
4
votes
1answer
159 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
307 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
105 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
156 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) ...
5
votes
2answers
308 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 ...
5
votes
1answer
143 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
90 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
61 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} ...
6
votes
1answer
149 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 ...
1
vote
0answers
93 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} ...
2
votes
1answer
67 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 ...
3
votes
1answer
76 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 ...
4
votes
0answers
58 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
217 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
125 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 ...
3
votes
1answer
149 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
124 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 ...
5
votes
2answers
137 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} ...
1
vote
0answers
91 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 ...
3
votes
2answers
84 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 ...
3
votes
1answer
108 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
62 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
80 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, ...
5
votes
1answer
180 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} ...
3
votes
1answer
105 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}[ ...
2
votes
1answer
333 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, ...
2
votes
2answers
282 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
148 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 ...
2
votes
0answers
91 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, ...
1
vote
1answer
125 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
159 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. ...
2
votes
1answer
88 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 ...
2
votes
1answer
100 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 ...
1
vote
1answer
74 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}; ...
5
votes
1answer
112 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} ...
4
votes
1answer
168 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 ...