Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

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

Why do the lines go through the edges of my nodes?

I want to connect the nodes where the lines or arrows only touch the edges, but instead, the lines and arrows are going to the center of the nodes. Here is my code: \documentclass[tikz,border=5pt]{...
2
votes
3answers
43 views

Proper vertical alignment of text in tikz nodes

Yuck. Presence/absence of descender characters seems to shift the baseline of my text. How do I align the text properly? \documentclass[border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{...
0
votes
0answers
27 views

I'm trying to add a small graph in document . However, it returns Package tikz Error: Giving up on this path. Did you forge t a semicolon? [duplicate]

\begin{tikzpicture} \draw[black] (0,0) -- (3,0) node[ pos=0.01,label=below:{-2}]{|} node[ pos=0.16,label=above:{+}]{} node[ pos=0.33,label=below:{0}]{o} node[ pos=0.48,label=below:{...
0
votes
1answer
30 views

How to extend length of certain arrows in a graph

I'm making a graph using the tikzpictures package. Unfortunately, my graph is a little crowded and forces me to use extra states to keep it clean and ordered. Is there anyway to extend the length of ...
2
votes
1answer
47 views

TikZ' Pic Syntax doesn't work with edge nodes

Eventually, I'd like to draw a picture inside of a node of a bigger picture. Since nesting tikzpictures is not recommended, I thought that the pic syntax provided a convenient alternative. However, ...
0
votes
0answers
21 views

Node at upper right corner, minus 12 pts vertically, using mdframed and tikz

I discovered the mdframed package and have been toying with the framemethod=tikz setting to create a frame with some text in it. I'd like to place some text near the upper left corner, but set a few ...
1
vote
1answer
40 views

Node positions do not change while changing the x,y values

I am using use textblock with tikz. If I change the x,y values of \node (Point) at (xcm,ycm) the image position does not change? Example: (x=12, y = 13) or (x = 2, y = 5) display same position of ...
0
votes
1answer
56 views

In tikz, can I write single long nodes as multiple short nodes?

Suppose I have the following in tikz: \node[right] at (0,0) {$A=\{1\}$}; But I would like to write this as five separate nodes, each representing a character in the above. In other words, one node ...
2
votes
1answer
46 views

CV skill bar with text on the left side

I have the following example: \newcounter{yval} \newenvironment{bardiagram} { \setcounter{yval}{0} \newcommand{\skill}[2]{ \filldraw[lightgray] (0,\value{yval}) ...
2
votes
1answer
129 views

shade between two concentric objects

I'm trying to shade (transition from one color to another color) between two concentric objects with happen to be rectangles, while producing multiple concentric objects in a \foreach loop. I can ...
0
votes
0answers
59 views

TikZ: text along path as node (again)

I would like to ask again the following question: TikZ: text along path as node That question was answered with a solution which was good enough for OP at the time. I would, however like to have an ...
1
vote
0answers
32 views

Avoid edges and labels overlapping automatically

I would like to avoid edges and labels overlapping. I have seen different solutions, but all of them need manual adjustments. However, I need to produce several graph like the one below and find it ...
1
vote
1answer
50 views

Align node text in tikZ graph

I have the following tikz picture but I can't figure out how to properly align the characters on the left (A,B,C,D,E). I'm pretty sure there's a better way than how I did it with the node labels. Any ...
1
vote
1answer
49 views

Edge between two tikz pictures

I am trying to draw some edges between tikzpictures in latex. I will post the code sample and a picture of what it looks like and a pic that gives an idea of how I would like the edges to look. I have ...
2
votes
3answers
50 views

resize nodes in tikz and boxes to visualize three levels of subsets

im trying to overlap multiple nodes to visualize three levels of subsets and include some text for each subset. Is there a way to force the fit comand to increase the padding? or is it more efficient ...
0
votes
1answer
64 views

How to calculate the size of a tikz node

I'm trying to customize a template, in which the following snipet generates a "mini table of contents" respect to the book's part which is created. \node[anchor=south east,inner xsep=1.7cm,inner ysep=...
1
vote
1answer
41 views

Vertex labeling emptyset

I want to draw a tree which contains nodes that are from 2 or more paarents is there any way to set this up with tikz and trees \documentclass{scrartcl} % input encoding \usepackage[utf8]{inputenc} ...
-1
votes
1answer
73 views

Multipart node with table-like structure, to represent inner structure of commit, tag or tree objects in Git

I would like to recreate a type of node to represent commit, tag or tree objects in Git, like the one below That is, I would like to have table-like internal structure of a node, representing ...
1
vote
2answers
61 views

Tikz package different ysep for top and bottom

Is there a method to make a tikz node have different inner ysep for top and bottom? It seems like there is no trivial option, but if someone can suggest a trick, it would be nice!
1
vote
1answer
65 views

Complicated node shapes

I am trying to make a diagram of a mobile network. For this purpose I have created a base station/cell tower drawing in tikz. \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} ...
1
vote
2answers
60 views

How to center and wrap text inside node?

Consider two circles with long text nodes inside: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) circle (1.5cm) node[text width=3cm] {This is ...
2
votes
2answers
34 views

Automate without initial, nodes on 3 lines

New to LaTex trying to redraw some diagrams Any ways of doing that? Is automata a way to go? How do i set the node positions with automata nodes? And how to draw lines like these withh description? ...
3
votes
0answers
61 views

PDF version <1.7>, but at most version <1.5> allowed

I used a C++ function my teacher gave us to create some ppm files, which I then converted to the eps format using an online resource for use in my report. However, these images are causing problems. ...
0
votes
1answer
61 views

Drawing a two-sided trade graph on Tikz

I am trying to draw the following graph on Latex using Tikz: I want the caption of the figure to be below. I have been using the following codes: \begin{figure} \centering \begin{tikzpicture}[>=...
2
votes
2answers
176 views

Drawing a Wickselian triangle graph in Latex

I am interested in drawing this Wickselian graph using Tikz: I want to move the labeling of the figure down below though. Since I am very new to Tikz any advice on how I can get started? I would ...
3
votes
2answers
72 views

Trouble by recalling nodes to filling path in pgfplots

I'm try to store some coordinates of a pgfplots diagram into node in order to use them in a second time. For example I define three nodes by \node[inner sep=0pt] (A) at (axis cs:2,2) {}; \node[inner ...
11
votes
5answers
1k views

Trying to draw a circle with nodes

I am trying to draw the following image in Tikz But all I got is I am not able to make it into a perfect circle. The code is \documentclass[tikz,border=2mm]{standalone} \begin{document} \...
2
votes
1answer
44 views

Cross Multiplication

I am trying to achieve something similar to this: My first idea was to use nodes inside tikzpicture, so I came up with this: First Example \documentclass[11pt]{article} \usepackage{tikz} \...
5
votes
1answer
119 views

How to Set Lengths (Glue/Skips?, not Dimensions), in LuaTeX?

I am trying to define a length, (not a dimension)—using Lua. But, I am having trouble with the syntax. I think I am supposed to be using the same structures/prototypes as glue_spec in order to still ...
0
votes
1answer
68 views

Multicolored grid of nodes

I am trying to draw a grid of nodes, where each node has a different color: I learnt how to draw a grid of nodes from the solution to: TikZ: Using Loop to Draw Grid of Nodes This gives the grid ...
1
vote
2answers
87 views

Circle in place of black node in graph

Question: In my graph i want to draw small circles in place of black dots for every points a, b, c, d, e, f and g. further i want to label all these points inside circle. MWE: \documentclass[10pt]{...
1
vote
1answer
42 views

Add one more node in tree

Question: I have one MWE of tree in which i want to add one more node under G having lable I. How to do this? \documentclass[10pt]{article} \usepackage{pgf,tikz,pgfplots} \pgfplotsset{compat=1.15} \...
0
votes
1answer
58 views

Text auto resize to fit a node

I need to autoscale a text to fit inside a static node which can't change its size. The code I'm actually using is \node[text width=3.75cm] at (0.5*\width,\titley) { \begin{center} ...
1
vote
1answer
191 views

TikZ node positions

I am trying to uncover parts of a PDF (available here) frame by frame (i.e., rectangle 1 on one frame, rectangle 2 on next frame and so on) using TikZ. However, I am having difficulty in referencing ...
0
votes
1answer
40 views

Is it possible to set the color of partial text inside a node?

I have a tikz node \node[] {blah}; and I want to set the color of half the text, such as "ah" to a different color without having to create a new node and try to make everything stick together ...
1
vote
1answer
87 views

Using Tikz-cd “to path=” to Illustrate Composition of Natural Transformations

I'm having two issues in Tikz-cd in trying to make the following picture: which appears in Categories for the Working Mathematician by Saunders Mac Lane. I've looked at the documentation for Tikz-cd, ...
2
votes
2answers
43 views

node placement relativ positioning

i'm trying to draw a schematic with a gain that has \times 2 inside of it. The description places the text far above the element. I tried to place a node exactly where the amp is, but it seems to be ...
2
votes
0answers
54 views

how to remove all space around a text?

I need sans serif text inside nodes to be "perfectly" left aligned in a tikzpicture environment. This code illustrates my problem: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \...
1
vote
1answer
44 views

Text placed at distance from line, given radius and angle

Assume a line from A to B. At p% (or p mm/cm) of the distance from A to B, starting from A, I want to "turn" using a radius r and an angle y relative to the AB direction (y=0 is in the direction of ...
2
votes
1answer
64 views

Tikz text in Nodes

I found the following code for the representation of a Neural Network in another thread: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,...
2
votes
2answers
94 views

Parallel tikz lines and node placement (network graph)

I am trying to recreate (the less than pretty) figurebelow Using the code at the bottom of the post I was able to come up with the following solution I have some gripes with this solution, which I ...
0
votes
3answers
82 views

pgf-plot node at the center-south of the image

I use this code for drawing plots. \documentclass{article} \usepackage{pgfplots} \usepackage{fancybox} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle,samples=200] \...
1
vote
1answer
58 views

Tikz: positioning of plot within node?

I would like to use \begin{axis} and \addplot within a node, as follows: \begin{tikzpicture}[xscale=0.5,yscale=0.5] \pgfmathdeclarefunction{gauss}{2}{ \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)...
2
votes
1answer
54 views

Positioning a node alongside a curve

What am I doing wrong ? Changing the value next to pos= doesn't move the node... \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \begin{...
2
votes
0answers
57 views

Evaluate variables for positioning multiple times

Here is a working code (I'll describe it just after) : \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{graphics} \usepackage{tikz,pgfplots} \...
1
vote
0answers
62 views

Custom checkbox symbol

Consider the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[line width=3pt,rounded corners] (0.75,1)--(0,1)--(0,0) -- ...
4
votes
2answers
78 views

Node positioning in Venn diagram

Consider the following MWE: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle ...
2
votes
1answer
88 views

How to draw a tree diagram using tikz in which the nodes overlap?

I'd like to use the tikz package to draw a tree diagram (see my code until now below). My issue is that the nodes all are restricted to their own matrix column, so my diagram becomes too broad to fit ...
2
votes
2answers
94 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
135 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 ...

1 2 3 4 5 24