Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

Filter by
Sorted by
Tagged with
2
votes
2answers
64 views

Completing the loop in tikz

I am trying to complete my cyclic diagram, but my last bit of tikz code reverses my arrow direction and does not complete the diagram. I know that only my last arc is wrong, but I do not know how to ...
2
votes
2answers
115 views

Distance between horizontal tree levels

My problem is that the following tree produced with tikzpicture squeezes my nodes way too close together, as you can see in the picture below. I have been trying to use level distance to move the them ...
4
votes
2answers
126 views

Use evaluate option of \foreach to display integers not floats in TikZ

\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[->] (-2,0) -- (2,0) node[right] {$x$}; \draw[->] (0,-2) -- (0,2) node[above] {$y$}; \...
3
votes
1answer
48 views

Alignment of labels in tikz nodes

Please consider the following example. \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{fontspec} \usetikzlibrary{decorations.text} \usetikzlibrary{positioning,decorations.pathreplacing,...
0
votes
1answer
31 views

How to globally change the color of tikz nodes?

I see here: How to specify a fill color in RGB format in a node in tikzpicture? It is possible to change the color of a node locally. However, I would like to add a background color globally to all ...
1
vote
1answer
36 views

Multiple tikz chain alignement

I would like to display this result : This is my code : \begin{tikzpicture} \begin{scope}[start chain=1 going below, start chain=2 going right, start chain=3 going right] \node[on chain=1] (...
3
votes
1answer
54 views

Hiding partially a curve/path/edge

I would like to hide the b-i edge when it passes all between the edges f-l and h-c ( not only at the intersection). I would need a solution that doesn't force me to compute manually the slope at (f) ...
0
votes
1answer
21 views

edgeworth box can't draw node

I would like to draw in a caption on the top, bottom, left and right of this graph. Unfortunately I can't seem to draw anything at all: MWE: \begin{document} \begin{tikzpicture} \begin{axis}[axis x ...
3
votes
2answers
53 views

Draw axis in block diagram

I would like to add plots inside TikZ nodes. Here is a minimum working example of the code I already have. \documentclass[]{standalone} \usepackage{pgf,tikz,pgfplots} \usetikzlibrary{calc,positioning}...
1
vote
2answers
40 views

How do I draw only the beginning and the end of an arrow from one node to another?

I am trying to create a node-network using pdflatex and have something very specific in mind. Below, you can find my current minimal example as a tex file that I have a problem with (compilable with ...
0
votes
0answers
51 views

TikZ Graph with Graphdrawing and Layered Layout: Nested Nodes do not work at all

I am using TikZ with the libraries graphs and graphdrawing together with the grid layout to generate graphs where the nodes are placed automatically by libraries. Everything, except one thing, works ...
4
votes
3answers
295 views

Tikz-cd diagram arrow passing under a node - not crossing it

I'm drawing some commutative diagrams, and some of my diagonal arrows are crossing nodes on their way. I would like to have a sort of "crossing under", to force the arrow not to show while crossing ...
2
votes
1answer
51 views

How to obtain rounded rectangle textbox and add connectors in chronosys timeline?

I am trying to modify a chronosys timeline obtained from here to obtain a rounded rectangle and connectors such that the textbox and the range are connected with their midpoints as shown in an example ...
2
votes
1answer
42 views

tikz node exceeding axis

I have an axis environment in a tikzpicture with a straight line exceeding the axis. At the end of the line I add a node whose text partially also exceeds the axis and is clipped. Clipping the line is ...
3
votes
4answers
80 views

Draw a cyclical graph with nicely aligned edges using nodes in tikz [duplicate]

I would like to draw a cyclical graph in tikz using nodes and edges as hassle free and with as little code repetition as possible. However, the resulting edges do not align nicely with respect to the ...
2
votes
1answer
29 views

How to color each item per slide and revert back to black on other slides?

I want to highlight by color each item per slide so that it appears animated. That is to say I have two items under the label A. Now I want to highlight the first item with the color red on slide 2. ...
3
votes
1answer
45 views

How to get both transparency and rounded corners in tikz picture without using additional packages?

I am trying to create a tikz image that has rounded corners and transparency at the same time. The problem I face with the MWE given below is I can have either transparency or rounded corners, but not ...
2
votes
1answer
35 views

Pgfplots Interrupt Bounding Box by applying a style to a node

I would like to be able to use \addplot ... node {<node text>}; and have the node not affect the bounding box. That is, the bounding box should be what it would be with just: \addplot ... ; ...
0
votes
0answers
37 views

Node position adjusting with math

It's been a while and I'm getting back into circuitikz. I'm trying to make a simple block diagram, here is my code. \begin{tikzpicture}[auto, node distance=3cm,>=latex'] \node [input] at (0,0) (...
3
votes
1answer
42 views

Problem on coloring nodes with [fill=black!\pgfmathresult] in tikz

I tried to use tikz to fill nodes with colors according to values in an array file, but I failed to fill nodes with right color when fixing node position by [at (a,b)]: \begin{document} The data in ...
3
votes
1answer
118 views

rearrange tikz dashed rectangle blocks

I have the following tikz code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, chains, ...
1
vote
1answer
143 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 ...
4
votes
2answers
126 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
33 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
49 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
34 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
76 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{...
1
vote
2answers
109 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
268 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
219 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
45 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
45 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
59 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
33 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. \...
2
votes
1answer
83 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. ...
2
votes
0answers
54 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
44 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
85 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
86 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
79 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
28 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
822 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
144 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 ...
2
votes
1answer
74 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
112 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
89 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
141 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
36 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
64 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
53 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}