Skip to main content

Questions tagged [nodes]

{nodes} is about nodes in {diagrams}. A node typically consists of a shape which may or may not have a border and a filling, as well as some (text) content but it may also be empty. It can be connected with other nodes or parts of the diagram via edges.

Filter by
Sorted by
Tagged with
2 votes
1 answer
51 views

How to Reproduce a Specific Economic Equilibrium Diagram with TikZ

I'm trying to reproduce a figure from a textbook that depicts international trade equilibria with sanctions using TikZ in LaTeX. Despite my efforts, the resulting figure from my code doesn't closely ...
Yusef Hamdellah's user avatar
1 vote
1 answer
35 views

How to slant the edges in the given graph?

I am unable to draw the following graph in tikz. I tried the following code in tikz but it is not producing the desired output. Can someone please help me out. \begin{figure} \centering ...
Olivia's user avatar
  • 157
1 vote
0 answers
37 views

Update tikz style of a named node type to be a box with two colours

Right now I have a node type that looks like this (pictured with wires coming out): but I'd like it to just have two colours -- white on the left and orange on the right (no shading). I've read about ...
Adina Goldberg's user avatar
0 votes
0 answers
35 views

\draw arrows convergence

I want to make the tips of the arrow illustrating the enerhy gap level converge with each other with a little bit of space between them, just like I drew. Also, I would like the arrows to be thicker. ...
Yusef Hamdellah's user avatar
0 votes
0 answers
25 views

arrows convergence [duplicate]

I want to make the tips of the arrow next to 𝐸𝑔 converge with each other with a little bit of space between them. Also, I would like the arrows to be thicker. These are the code lines I used: \begin{...
Yusef Hamdellah's user avatar
1 vote
2 answers
83 views

Making a node in TikZ occupy the vertical space of one line - at least as far as positioning a "pin" is concerned

In the following code for a diagram, I have a "pin" draw from the vertex of a parabola. I would like it drawn to the middle of the node as if "V = (0,0)" were not in the node. Here ...
user143462's user avatar
  • 1,071
3 votes
1 answer
97 views

Tikz Border Problem

I am trying to create the figure below using Tikz. It comes from Larson/Battaglia page 103 (see attached image). I have started the picture, but I just don't know how to create the arrow at the end. ...
Nick B's user avatar
  • 937
0 votes
2 answers
56 views

TikZ Node with not exceeding right page border

I have a beamer presentation where I want to have on top of each frame the title and subtitle of the given frame. In my beamerouter file, I created the main template for the frames with the following ...
Krzysztof's user avatar
  • 121
2 votes
2 answers
44 views

Draw coloured edges in forest

\documentclass[12pt,a4paper]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{amsmath, amsthm, amssymb} \usepackage[ngerman]{babel} \usepackage{forest} \begin{document} \...
VD3's user avatar
  • 69
3 votes
3 answers
162 views

Rotate edges in tikz

this is my code for a directed graph. I use the rotate function and now the edges are in a muddle. \begin{turn}{90} \begin{tikzpicture}[>=Stealth,->,line width=.7pt] \matrix [matrix of math ...
VD3's user avatar
  • 69
2 votes
0 answers
36 views

Latex errors when the number of nodes of a graph is more than 26!

I do not need any counter, I am just trying to draw a graph with 35 nodes. However, it gives the following errors: counter too large! and missing \endcsname inserted! The problem, I guess, is ...
Jen's user avatar
  • 21
0 votes
1 answer
72 views

Problem of resizing and scaling

i have to make this table My code have 2 problems, one i want (grey or dotted) line to be at scale entry 1, then entry(2,5,10) will be on one side and entry (0.01,0.05,0.1,0.2 and 0.5) on other side. ...
Maryam's user avatar
  • 53
1 vote
0 answers
57 views

How do I scale nodes in TikZ without scaling the text inside?

I want a node that is shaped like a hexagon, but slightly stretched on the x-axis. Currently, I achieve this, but it stretches the text inside as well. How do I do this without stretching the text? ...
OldTanoa's user avatar
6 votes
4 answers
427 views

Node in a middle of a line strange behaviour

As you can see, the Greek letter theta which is expected to be just below the curved stroke instead takes on a completely unexpected position. What could it be due to? \documentclass[14pt]{article} \...
user3204810's user avatar
  • 1,539
3 votes
2 answers
146 views

Add Horizontal Text using Tikz

I am trying to make a template for my AP Classroom that is similar to the picture that is shown. I am wondering how to add the text ''Do not write beyond this border. I am having trouble because ...
Nick B's user avatar
  • 937
1 vote
2 answers
58 views

Box around nodes to account for the label of each nodes tikzpicture

The problem I am drawing boxes outside of labelled nodes and the boxes does not account for the labels above the inner nodes. Here is the MWE of my document: \documentclass[10pt]{article} \ExpandArgs{...
pindakazen's user avatar
0 votes
1 answer
15 views

To which entities can I anchor nodes in pgfplots?

I find it difficult to read from the pgfplots manual, which entities I can refer to, e.g. to anchor nodes with further information. E.g. in the example below, what are some or all entities I can ...
MS-SPO's user avatar
  • 13.8k
0 votes
1 answer
49 views

Adding text with reference to yticklabel in polar plot

I have a polar plot with a not very clever dB label under yticklabel. In this case everything is fine, but I want to change many such charts but with a different y-range, so I need to add a label with ...
Chey's user avatar
  • 85
2 votes
1 answer
53 views

Adding annotations on images in minipage

I am trying to add a visual annotation (a rectangle) on an eps file directly using LaTex. I have attached the desired outcome below : For that, this is my code : \documentclass{article} \usepackage{...
Waxler's user avatar
  • 860
4 votes
1 answer
108 views

Tikz matrix with color nodes (traffic light)

I am trying to adjust a command for traffic light (found from some answer for previos question) such that the border of nodes (circles) will be black (line draw = black!100 inside nodes), but it seems ...
kissmemiau's user avatar
3 votes
3 answers
194 views

Node in unwanted position using tikzpicture

I am trying to adjust the position of a node in a tikz figure but for some reason the dot that I create doesn't show in the appropriate coordinate (0,8/3) that is imposed. @codeR suggested me to put ...
Waxler's user avatar
  • 860
0 votes
0 answers
39 views

What's the simplest way to auto-layout \node so they do not overlap? [duplicate]

I'm using the latest mactex on macOS, the xelatex part. I'm rendering this tree structure of nodes: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{...
grigoryvp's user avatar
  • 101
3 votes
2 answers
197 views

Connecting nodes by lines which represent density of connections

How could the lines be connected to signify density(heat) by the number of lines connecting to parenting nodes. I.e the more lines connect to same parent node, the brighter the heat of the converging ...
Joosep Parts's user avatar
0 votes
1 answer
33 views

How do I align two rows of characters inside a tikzpicture node, when the second line contains mainly whitespace?

I'm using tikzpicture to draw diagrams/flowcharts in my dissertation and I have encountered an alignment problem inside a node. The node contains two rows, the top row is the variable names and the ...
Michelle's user avatar
  • 553
0 votes
2 answers
73 views

Rectangular node with cross (plus) marks at the edges

I want to divide the working area into some parts and then mark their borders with plus marks. I can do this separately: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{...
Przemysław Scherwentke's user avatar
0 votes
0 answers
22 views

Tree diagram using tikz in latex. How do I make the different forest classes to be on two or three columns?

This is the code I have: \begin{figure} \centering % \tikzset{ basic/.style = {draw, text width=3cm, align=center, font=\sffamily, rectangle}, root/.style = {basic, rounded corners=...
user21060315's user avatar
1 vote
1 answer
75 views

Node acting as a title in tcolorbox

I am working with the following document and would like the red title box to sit vertically centred right in the middle of the top rule of the text box. Of course, I could do this manually by ...
wrb98's user avatar
  • 896
1 vote
1 answer
35 views

Select precisely the departure of a line between nodes

I want to chose the departure of my lines between my nodes in somewhere between these anchors, for example I want to choose a anchor between north east and east. How can I do that? \documentclass[...
gaby8gaby's user avatar
0 votes
2 answers
102 views

Tikz node anchor and alignment

In tikz, I have a node with specified text width, so the text can break into multiple lines. I also have another circle with some text in it. I want the circle to be aligned as in the second picture, ...
totallyimmersed9's user avatar
2 votes
3 answers
131 views

How to add a label below a node

The below diagram was made by positioning the annotations manually: I'd like to make the code easier to adapt. For example, make it easier to extend with some more annotated nodes. It would help if ...
sjdh's user avatar
  • 311
3 votes
1 answer
104 views

Latex Forest Package Reduce the length of lines betwen nodes?

By using Forest package i am try to create red-black tree. In some point in my presentation i need to shorten the lines between the nodes which are red, but the parents are black. \documentclass{...
İbrahim Uğur ABA's user avatar
4 votes
1 answer
102 views

Alternating color borders of nodes and forest package

I try to follow How to draw a double-color line with tikz and incorporate a node with alternating colors in the forest package. In classic tikzpicture and with node properties it works. However, for ...
Arne's user avatar
  • 1,390
2 votes
2 answers
171 views

Jump crossing in circuitikz

I wanted to draw a jumping node to the intersections of leg1 and voltage. If you can run the code you will probably understand why I mean. I tried to[crossing] and naming the intersection point then ...
Barbaros Teoman Kosoglu's user avatar
4 votes
3 answers
292 views

Recreating Image Using TikZ (nodes and Edges)

I am trying to create the following picture using TikZ. I have come up with something, but I am wondering if there is a more efficient way to do this. You can see each part of the integrand is its ...
Nick B's user avatar
  • 937
0 votes
1 answer
46 views

How to get math font larger than Huge in node? [duplicate]

I need to add text to a pdf, but the largest \Huge is not big enough, so I change the font size according to question's answer, but I found that this command does not work for math fonts. You can see ...
Zhao Dazhuang's user avatar
2 votes
0 answers
90 views

How to get a math font that is much larger than Huge?

My tex code is like this: \documentclass[border=2pt,tikz]{standalone} \usepackage{tikz} \usepackage{amsmath} \usepackage{siunitx} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \node[...
Zhao Dazhuang's user avatar
0 votes
1 answer
37 views

Node not showing in plot

I want a node do describe my second function e^{-2t} but it doesn't showing up; this is my code: \begin{tikzpicture} \begin{axis}[ xmin=-3,xmax=3, ymin=-2,...
Dio's user avatar
  • 3
2 votes
1 answer
120 views

Adding tikz nodes dynamically relative to anchor

I am trying to reconstruct a CV that I've originally built in InDesign in LaTeX and have come to the conclusion that I must redo it since I most likely will not find a tool to convert InDesign files (...
fieseler's user avatar
1 vote
2 answers
43 views

Beamer: Increase Heights of the Two Rectangular Boxes Containing Tikz Picture

I have two tikz pictures wrapped in two rectangular boxes and connected with tikz arrow for illustration on beamer as demonstrated below: \documentclass[xcolor=dvipsnames,svgnames]{beamer} %\...
economia's user avatar
  • 259
3 votes
4 answers
315 views

How to draw observed and residual variances in a path diagram with `tikz`?

I want to draw observed and residual variances in a path diagram. I tried the following: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} % Page style. \pagestyle{empty} % `tikz` ...
Mihai's user avatar
  • 223
1 vote
3 answers
156 views

TikZ: bullet points on both sides of nodes

Here's a MWE of a diagram I'm working on for a paper: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,fit,backgrounds} \begin{document} \begin{tikzpicture} [ ...
Charlie Vanaret's user avatar
3 votes
2 answers
309 views

How to draw a block graph (many complete subgraphs joined together)

I am wanting to draw a block graph. A block graph (or clique tree) is a type of graph in which every biconnected component (block) is a clique. A clique is a subset of vertices (nodes) of a graph such ...
Emily's user avatar
  • 125
2 votes
2 answers
401 views

Only do wiring along the x/y axis

Is there a way to draw a wire only along the x or y axis? I mean of course you can do it manually when you give it fixed points, but is there a way to give two coordinates and latex splits it up in ...
UserUnkn4wn's user avatar
0 votes
0 answers
59 views

Pointed ellipse shape

I'm trying to draw a pointed ellipse shape between two tikzmarknode nodes. Regardless of the ratio of semi-major to semi-minor axis I choose, I can't make the ends very pointy. My different attempts ...
TheorVHP's user avatar
0 votes
1 answer
72 views

Tikz: draw arrow as node inside axis environment

Yes I know there's a similar question, but I'd need something simpliest. I would like to reproduce this image, and my idea was to draw the two arrows (the ones corresponding to m=+1/2 and m=-1/2) as ...
user3713179's user avatar
0 votes
2 answers
61 views

TikZ: decorating a circle with a dotted partial-ellipsed arrow

I'm trying to reproduce this simple drawing, How can I simulate the dotted ellipse as it simulates the rotation of the particle? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]...
user3713179's user avatar
3 votes
0 answers
135 views

Shift node text in tikz

I need to display two lines of text at a node using tikz. The code I am using is: \documentclass{book} \usepackage{pgf,tikz} \usetikzlibrary{arrows.meta} \begin{document} \...
Emad's user avatar
  • 33
5 votes
1 answer
161 views

weird polar coordinate to place a node

I found a weird "(node.angle)" instruction, see the complete minimal example below. From the tests I have been able to do, I understand it is a kind of polar coordinates. We start from the ...
Franck Pool's user avatar
3 votes
2 answers
71 views

The spacing is not the same after defining the absolute position of the node?

I defined the absolute position of the node, and the difference between their vertical coordinates is fixed y. However, the distance between them is different in the picture display. How to solve it? \...
Zhao Dazhuang's user avatar
0 votes
2 answers
124 views

TikZ coordinate

In a diagram made with TikZ, I saw this coordinate relative to the node “c”: (c.130), 130 being an angle in degrees. Can someone tell me why the distance between the two points obtained is not ...
Franck Pool's user avatar

1
2 3 4 5
30