Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

1
vote
1answer
46 views

Put exam \answerline blanks as nodes inside \tikzpicture

The exam class allows you to leave spaces for students to write answers, using the answerline command. Furthermore, when \printanswers is enabled, an file can be generated that fills in these blanks ...
5
votes
2answers
96 views

Straighten subgroup lattice

I would like to straighten out the top node and the bottom node so that they create a more tidy lattice. I found this post here, but I wasn't able to follow what was going on. I just think that my ...
0
votes
1answer
26 views

LaTeX Tree Diagram

I'm trying to recreate the diagram on this website: http://www.njohnston.ca/2013/04/the-minimal-superpermutation-problem/ and am finding difficulty with joining all the nodes in the third row to a ...
1
vote
1answer
48 views

My TikZ output is omitting nodes

I really don't understand why this is happening, so I thought it was a bug from TeXStudio, but when I went on TeXShop and created a MWE it persists. I have the following code: \documentclass[border=...
1
vote
0answers
32 views

pgfplots: How to set “axis on top” only for abscissa and ordinate, but not for grid? [duplicate]

I try to format a ybar diagram nicely. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar ...
2
votes
1answer
38 views

pgfplots: “axis on top” will cross out ybar value nodes?

Assumed we have a simple ybar diagram including ymajorgrids. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
2
votes
2answers
99 views

How to place nodes around a circle from some initial angle?

The code below generates 6 nodes placed around a circle at angles 60, 120, 180, ..., 360 with labels 1, 2, 3, ..., 6, respectively. However, I would like to place these 6 nodes in the way (where the ...
7
votes
3answers
248 views

Overlapping nodes in a decision tree

I have the following decision tree taken from this example with little modification. When I added two sub-nodes to the second right node, the inner left and inner right nodes have been overlapped. How ...
5
votes
1answer
186 views

Flow chart document symbol

I am doing an old-style flow chart with TiKz, and I am defining my nodes with the \tikzstyle command (example \tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,...
1
vote
2answers
36 views

Drawing node within node (Tikz)

I don't get any error for the compiling, but I don't get what I expected either, which was for my second node to show up with the same set of numbers as my first node. Can someone please let me know ...
1
vote
2answers
36 views

Draw sloped and above path text between two edge-connected nodes with “circle connection bar option”

I wish to draw the text "USA" on path_1 using options as it was drawn "USA" in path_2, but draw without using nodes,only using edge in path_1. \documentclass{article} \usepackage{tikz} \...
1
vote
1answer
45 views

With Tikz, how can you center a scope that varies in size below or next to a node?

I'm looking for a way to center the scope local bounding box=Node4-0 below Node3-0. Also I'd like to put a fixed distance between the scopes surrounded by a red outlined box, like what happens with ...
0
votes
1answer
30 views

How to use package setspace whit package hyperref, like this: \ node {\ href {https://google.com} {\ begin {spacing} {2} Text \ end {spacing}}}?

How to use package setspace whit package hyperref. because I've been getting the following error below when I try to generate the tex file described in my MWE: ! Missing \endgroup inserted. \...
3
votes
1answer
58 views

Tikz diagrams and node placements

I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. ...
3
votes
0answers
44 views

How to define new anchor border in new shapes with tikz-pgf

I'm trying to build a libray of symbols by means of defining new shapes in pgf-tikz. To be honest, it's being a enormous task for me because I don't understand lot of things of code to do it. ...
2
votes
2answers
37 views

Apply foreground effect to the node child of a mindmap or background to the arm of the parent node

I need the node child's "Tree" arm not to overlap the node child "BIRD'S TO ...". I've been trying to load the library backgrouns and use "on backaground layer" in the options for the child "Tree" but ...
3
votes
1answer
68 views

Change orientation of a TikZ mindmap node

Here my MWE using code from the Arrows e decorations.text : \documentclass{article} \usepackage{tikz} \usepackage[paperwidth=15cm,paperheight=19cm]{geometry} \usetikzlibrary{mindmap,shadows,...
5
votes
1answer
49 views

How to get curved arrow originating and ending at the same node

Hi I'm trying to replicate the graph below. I've done most of it, but can't figure out a way to have an arrow originate and end at I've managed to get the below figure. And I'm stuck at produce the ...
5
votes
1answer
71 views

Tikz, issue with applying style to nodes

I am a beginner in LaTeX, especially in TikZ package. I want to draw Peterson graph with some styles. My code \documentclass{article} \usepackage{tikz} \usepackage{caption} \usepackage{graphicx} \...
1
vote
1answer
21 views

Compiling problem, connecting nodes thru edges is not working

I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on ...
13
votes
6answers
806 views

How to add multiple differently colored borders around a node?

I want to draw a node to be filled with a table containing data, and it should have (three) differently colored adjacent borders around it. Couldn't find anything in the PGF manual, on the Net, nor on ...
2
votes
2answers
69 views

TikZ node positioning, opacity, arrows and draw controls

I'm trying to draw a flow diagram using TikZ. I would like that the wording in the arrows appeared either left or right of the path, instead of on top of the arrows. I also tried to work around this ...
3
votes
1answer
43 views

Using node or draw circle in tikz-3dplot

I am exploring the tikz-3dplot package for drawing objects in 3d and experienced a problem. I simply want to draw a circle and reference some of the points later, but I found there is a difference ...
1
vote
0answers
75 views

Creating a custom node shape with a variable number of anchors

For the sake of training my self on PGF, I want to create such node shape having multiply ports with a selecting switch as shown below This is my attempt to create this node for a particular number ...
2
votes
1answer
58 views

TikZ node: How to decrease vertical space between two lines of text?

Assumed we have some simple code to display text above a brace styled node in TikZ. Minimum working example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{...
1
vote
2answers
131 views

Tikz - cannot figure out why my lines won't connect

I cannot figure out why my code doesn't compile into the attached image, not sure if I am missing something in how Tikz works or there's another issue: Code \begin{tikzpicture} \node[shape=...
0
votes
1answer
29 views

Place an arithmetic symbol between two bar charts in a tikzpicture

I want to visualize a calculation based on two bar charts. For this I want to draw two bar charts side by side and a multiplication sign between both of them. I wanted both axis environments and the ...
1
vote
2answers
62 views

TikZ fill color: How to decrease spatial size of fill behind text?

Assumed we have some simple code to display a text node with a colored fill behind the text. Minimum working example (MWE): \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{...
0
votes
1answer
41 views

How to make the size of the node bigger?

How do I make the size of the node larger? \begin{tikzpicture} \node [left,ultra thick] at (0,6) {$V_i$}; \node [left,ultra thick] at (0,3) {$V_f$}; \end{tikzpicture}
1
vote
1answer
56 views

Referencing Specific Tikz Nodes outside TikzPicture

I am wondering how to reference a Tikz node outside a Tikz Picture, as if referring to an image. This page lists the possible \ref{} objects not including nodes, but maybe there is a package that it ...
7
votes
2answers
183 views

Call for node distance as a variable in TikZ

Is it possible to use the node distance as a variable while expressing coordinates of new nodes with Calc and Positioning libraries? What I want to have is everything within a single piece of code for ...
0
votes
0answers
25 views

How to scale text in a graph of text nodes

This should be the simplest question ever. I want to be able to change every letter in the graph below by a text box very similar to the one on the left of J. Now, the problem is that if I scale J and ...
1
vote
1answer
22 views

Tree: One child node is crossed by line, others not

In the example the fourth child node is crossed by the line, but the others, e. g. the second one not. How can I achieve that also for the fourth one the line is "lying under" the box? \documentclass{...
1
vote
1answer
29 views

Histogram with Markers, Marker Nodes and Legend Not Displaying Everything Correctly

I am still kinda new to TEX. I am currently working on a paper submission, however I am having trouble properly combining markers, node labels for the markers, a legend and a histogram all in the same ...
2
votes
1answer
51 views

Parameterize node circular sector shaded

I want to parameterize node creation in a foreach. The creation prozess was solved in: Cut part of radialshading out as node shape circular sector I think the substitution in the foreach has a ...
2
votes
1answer
63 views

Cut part of radialshading out as node shape circular sector

Part of the radialshading should be cut out of it. With this \clip(?)ed part I want to fill the \predefined node shape (here: \node maerz). Sorry for my english. The \shade works for two colors (...
3
votes
1answer
58 views

shading circular sector

I want to shade the predefined node shape "circular sector" pgfman301a,p 706, from the marked anchor points (sector center and arc center). The draw is based on pgfman301a,p.686. It's "on axis" ...
3
votes
1answer
64 views

Using a predefined shape circular sector

I'm trying to use the shape "circular sector" pgfman301a, p.706. I find no way to change length of axes (should be variable dependent of circle dimension). to position "apex" on 0,0 why "minimum ...
4
votes
1answer
193 views

Tikz - increase the spacing between 2 nodes of a stencil

I want to increase the spacing between 2 nodes of a stencil. The original design of the stencil comes from this question. \documentclass[a4paper, 12pt]{book} \usepackage{pgfplots, tikz} \newcommand{\...
2
votes
1answer
45 views

Relative coordinate in node placement

When I try to use relative coordinates in \node using the syntax: (x,y)++(a:r) it gives me an error, but when I just specify the second coordinate as ++(a:r) it's like the (x,y) first coordinate is ...
4
votes
2answers
136 views

Help with a node diagram

I am trying to recreate this diagram from a paper for my thesis. The idea would be that I can scale it to different sizes, only use parts of it and insert different nodes like the circles and ...
5
votes
3answers
307 views

What is wrong with the use of `isodd` of `xifthen`?

The white/black board can be drawn by testing the parity of node positions as follows: \documentclass[tikz]{standalone} \usepackage{xifthen} \begin{document} \begin{tikzpicture}[every node/.style = ...
5
votes
3answers
116 views

How to increase curvature using tikz

I was trying to replicate an image of a book, but I don't know how to increase the curvature on the curves. I've been done this so far: \documentclass[tikz, border=2pt]{standalone} \usepackage[utf8]{...
2
votes
2answers
58 views

colorbar problem when scaling every node

I'm trying to illustrate a confusion matrix, and when I scale every node and it seems to mess up the colorbar. Notice that the colorbar is not completely filled in. And here's an MWE: \documentclass{...
2
votes
2answers
37 views

node shadowed extra } error

try to get pgf manuals title page code into own areas. I have copied the code snippet of titlepage for nodeshadowed, but get error: \nodeshadowed has an extra }. I don't see the error. Additionally it ...
2
votes
1answer
57 views

TikZ: flipping shape without moving anchors

When drawing game trees in TikZ, I use upwards-pointing triangle to denote the maximizing player 1 and downwards-pointing triangle for the minimizing player 2. However, my current solution doesnt make ...
4
votes
1answer
216 views

tikz nodes inside node

I'm not sure how to position the three nodes inside the other "trustee characteristics". Have tried rectangle, however I guess this is not the right approach. Also the arrow should end/begin at the ...
3
votes
1answer
48 views

Line from Origin to Nodes at circles centers

I want to produce a figure like this: with this code: \begin{tikzpicture} \draw (0,0) circle [radius=10.75cm]; \draw (0,0) circle [radius=4.2cm]; \begin{scope}[even odd rule] \draw[fill=gray!20,...
6
votes
1answer
91 views

Center align text decoration along path

I am trying to duplicate the node highlighted in green but along a curved path. It mostly works, but when I attempt to apply the text align=center effect to the decoration, I get Dimension too ...
5
votes
2answers
256 views

How to draw a node as an arrow?

So far I have this code that generates 4 boxes side by side: \documentclass{article} \usepackage{tikz} \tikzstyle{arw} = [retangle, minimum width=3cm, minimum height=2cm, ...