{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

2
votes
0answers
49 views

Per Gelosia - node placement and 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
163 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
54 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: ...
3
votes
1answer
54 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
42 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
53 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
100 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
53 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
62 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
261 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
58 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
66 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
95 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
76 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 ...
1
vote
0answers
61 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
43 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
56 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
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 ...
2
votes
1answer
113 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
79 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
115 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
73 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
106 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
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 ...
3
votes
2answers
62 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
83 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
50 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

`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
118 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
71 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
124 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
162 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
97 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
57 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
73 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
110 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
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 ...
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 ...
1
vote
1answer
64 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
60 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
80 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 ...
3
votes
1answer
76 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 ...
3
votes
0answers
67 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 ...
2
votes
1answer
79 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} ...
4
votes
0answers
21 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} ...
2
votes
0answers
138 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 ...