{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

4
votes
1answer
43 views

Tikz Nodes do not take absolute coordinate values

this is my first post so please correct me if I am doing something wrong. I wish to draw a tikzpicture with nodes and use here absolute coordinates. I don't know why, but somehow my coordinates seem ...
12
votes
4answers
3k views

How to draw nodes with equal sizes, regardless label value/length?

I would like to make 12 nodes with same sized circles. Currently, the radius of a circle for single digit number and two digit numbers are different. Let r1 be the radius for single digit numbers. ...
1
vote
1answer
37 views

Connecting nodes of a duplicated graph

How can an edged be created between two copies of the same graph structure? The following is an example of the desired output (the labels don't need to be rotated with the object). Specifically I ...
0
votes
1answer
41 views

TikZ: using ‘node contents’ key for graph nodes

TikZ allows node contents to be set using an option: \tikz{\node[node contents=whatever];} Note the syntax, the following is not allowed: \tikz{\node[node contents=whatever] {};} and gives an ...
0
votes
1answer
30 views

TikZ: create single part node from multipart one with default text

I would like to create a style I can give to a node such that it is a multipart node (2-part, say) with one part's text fixed. I know I how to create multipart nodes using, e.g., circle split and how ...
1
vote
0answers
67 views

Undefined control sequence when using TikZ

I looked up how to use TikZ to make an ERD using crow's foot notation and found this. When I c/p the code provided there, there is no problems at all,but when the preamble is pasted into mine and the ...
3
votes
1answer
62 views

Tikz: four nodes above a node?

There are commands: left, right and above. I can get three nodes above a node by them but without creating empty nodes, I cannot think other way. So how can I get four nodes above a node in Tikz? ...
6
votes
1answer
68 views

Tikz path starting from inside a node

How can I have an arrow, which goes from an outer node to an inner node, leave the outer node from the inside of its border. In the MWE below the arrow leaves the outer blue node's border from the ...
2
votes
1answer
75 views

Tikz pictures inside Tikz pictures: typesetting failing in lattice subgraph with edges

I define Tikz pictures within each other. The typesetting fails in a way that the edges are not drawn properly: the edges are not drawn from the centers of vertices in the lattice subgraph structure, ...
3
votes
1answer
32 views

Side by side nodes, Horizontally aligned

I am trying to have two rows of nodes, but as you can see, the nodes are not horizontally aligned, so the arrows are off. How can I fix this? Result: MWE: \documentclass{article} ...
1
vote
0answers
57 views

How to return a list of connected nodes? Tikz

I am building a graph with nodes and edges in Tikz. Is there any commend which returns array of connected nodes to a particular node? for example, I have 3 nodes A,B,C and only A and C are connected ...
5
votes
2answers
61 views

Arrows to nested nodes

I construct a TikZ image with nested nodes: As you can see, I try to add arrows from the outer node to the inner one. How is it possible to target the arrows to the correct position of the inner node ...
9
votes
4answers
410 views

Draw a node as a square with TikZ

I googled but cannot find a solution. Is that possible to draw a node with TikZ which will be a square and NOT a rectangle? Minimum working example can be something like this: ...
1
vote
1answer
124 views

Nicer inverse symbol

In my diagram, I would like the operator to be centred, i.e. not be influenced by the inverse symbol. And preferably a smaller minus sign, while we are messing up latex anyway. An excerpt of tikz ...
4
votes
1answer
73 views

Plate captions overlapping

I am trying to draw a probabilistic graphical model using BayesNet, a TikZ library for drawing graphical model in latex. I have tried to insert plates caption - Tasks i, Classes c, workers j, ...
2
votes
1answer
29 views

tcolorbox disable repeated text in overlayed node

In the following MWE (built from http://tex.stackexchange.com/a/170767/69378) I have demonstrated that title text in an overlayed tcolorbox node gets repeated across page breaks. I have checked the ...
7
votes
1answer
1k views

What is the best way to name nodes in TikZ?

I found there are several ways to name a node (please relate to the MWE for more) but I am wondering if there are other (rather "simple") ways of doing this: My current 'best practice', it works ...
1
vote
1answer
39 views

Problem inserting a complicated equation into a (tikz) node

I have a problem inserting an equation into a tikz node. I'm used to insert successive equations that are separated with 'align', but with my equation (succesive lines, put together with two braces), ...
3
votes
1answer
35 views

Drawing a node with a line beneath

I'm trying to draw a line beneath a node. The macro is used to label parts of a sentence. Here is the code; \documentclass{article} \usepackage{tikz} \newcommand{\LabelText}[3]{% ...
1
vote
1answer
33 views

Macro involving TikZ mode does not work

I've create a macro for labelling fragments of sentences. It's designed to replace a segment of text with a label. Unfortunately, it fails to compile whenever the text fragment contains a ...
2
votes
1answer
34 views

Example for creating an irregular pentagon node for tikz diagram

I am trying to create an irregular pentagon shaped node to use in multiple system diagrams. I cannot seem to get the code to work from following examples I could find. Below is a sample of what I ...
1
vote
1answer
76 views

How can I make horizontal direction for last node using Tree

I am using tikz to draw my tree. I want to adjust the location of last nodes as expected figure(last figure). Second, I want to locate the tree in centering on page. Could you help me to fix the latex ...
2
votes
1answer
34 views

Pre or post process some node's options (nodes in node and main node labels)

For setting sub nodes in node I use the following code (provided by Mark Wibrow): \documentclass[border=3mm, tikz, preview]{standalone} \makeatletter ...
1
vote
1answer
41 views

Drawing graphs in latex with text-only vertices

I want to extend the implementations of the examples here to represent graphs with vertices simply represented as text as shown in the figure . I wasn't able to find similar templates/examples in ...
2
votes
1answer
82 views

Different approach?

I'm trying on my first tikz diagram, and it's working okay, but I've run into some problems and I think that my solution is starting to be more discretionary. Heres my code: ...
0
votes
0answers
39 views

Position of multiple arrows: Arrows must end at same position

I want to get two vertical sets of flowcharts and join their elements by arrows. MWE is given below. I want to draw two arrows from A1 and B1 to A2 with their heads meet at the same point. I tried ...
2
votes
1answer
59 views

Create split rectangle node with different height parts

I'm trying to find an elegant solution to make a bunch of shapes like this The best I've come up with is drawing a split rectangle, with a style like \tikzset{ entry/.style={ draw, ...
1
vote
1answer
37 views

Illegal unit of measure from `\node`

I have the following tikz commands \begin{tikzpicture} \node at (3.2,0) {$\mathbb{R}$}; \node at (-.2,-.25) {$I$}; \draw (-3,0) --(3,0); \node ...
2
votes
0answers
44 views

Tikz behaviour at page end

I am using tikz to put braces around an enumerated list as mentioned here. I have two curly braces with multiple comments as shown below The problem is I am not able to get the braces at the right ...
11
votes
4answers
1k views

Sloped Tikz node with rotation and scale

There should be an easy way to place a sloped node along a path. Using sloped works great (as in the black text). However, if there is a rotate= applied then the text is no longer along the path (as ...
4
votes
2answers
79 views

Tikz place drawing at a certain node

The following figure stands for a saturation block in a block diagram: The idea is to use this figure as a node at different positions in drawings and place it relatively to other nodes. Consider ...
2
votes
1answer
29 views

color (solid) individual nodes in tikzpicture matrix

in the following MWE, I create a 'Coates diagram' I use for one of my classes. What I haven't been able to figure out is...how to colour the individual nodes? I want them to be solid, say, RGB-based ...
6
votes
2answers
141 views

TikZ: Missing parts of flow chart

Could sameone kindly help me in this tikz flowchart that are missing texts and lines, please? I have tried to solve by myself, but I am stuck now. Original image My Code ...
6
votes
1answer
75 views

Tikz connecting nodes with draw to problem

I am trying to make a series of nodes that are all connected to each other in tikz. This is an MWE: \documentclass{standalone} \usepackage{tikz, pgfplots} \begin{document} \begin{tikzpicture} ...
3
votes
0answers
79 views

Circular flowchart alignment

I´m trying to create a circular flowchart using the smartdiagram package but I can't get the nodes properly aligned. My code: \smartdiagramset{border color=none,set color ...
0
votes
1answer
14 views

How to prevent misalignment of a vertical column when a node label is displayed

I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designate that it is a full moon) it shifts the circle ...
1
vote
1answer
14 views

How to prevent an object from moving when adding a node label [duplicate]

I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designates that it is a full moon) it shifts the circle ...
0
votes
1answer
50 views

Macro involving TikZ node does not work

I'm having difficulty with a macro I created; \documentclass{article} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \newcommand{\LabelText}[3]{% \begin{tikzpicture} ...
9
votes
2answers
3k views

Center nodes near coords in a stacked ybar plot

I'm trying to center the node values, at the middle of each bar, in a stacked plot. However I can only put those nodes in the top of each bar. Is it possible to move those down? To the center of each ...
2
votes
1answer
73 views

align node bottom edges vertically

I would like to draw a diagram with boxes of different heights such that the bottom of each box is on the same height. Additionally, I would like to connect the nodes by horizontal arrows. My approach ...
5
votes
3answers
197 views

pgf/tikz node custom shape

I cannot figure out how to get a node shape similar to this in pgf/tikz, I don't need the colours, just the black and white shape. Sorry I don't have any code as nothing I've tried gets me remotely ...
0
votes
0answers
51 views

tikzexternalize and savebox error

When trying out this solution but with \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepgfplotslibrary{external} \tikzexternalize instead of ...
3
votes
1answer
114 views

TIKZ Tree: Change angle between Nodes

I am struggling to find out how to change the angle between nodes in tikz trees. I have already tried the attribute sibling angle=... specifically for child nodes or as level 1/.style=... attribute at ...
1
vote
1answer
48 views

Tikz node not displayed in beamer

I'm having a problem with tikz game trees on beamer. The root node should be solid, but doesn't appear at all.. This code works in my paper but not on the slides I'm preparing with Beamer. Follows ...
2
votes
1answer
60 views

Store 2 values in a node separated by horizontal line in the middle

I have the following Binary tree: \begin{tikzpicture}[ every node/.style={draw,circle}] \node {10} child{node{5}} child{node{20}} ; ...
3
votes
1answer
61 views

Chamfered Rectangle and Minimum Text Height

pgf/tikz: I am trying to create a hexagon with a fixed height . Using the chamfered Rectangle. I can turn the rectangle into a hexagon, but when I try to apply the minimum height option it seems to ...
3
votes
1answer
67 views

distribute nodes evenly

I am trying to built a graph by manually placing the nodes using relative placement. But I face some issues with the way the nodes are placed. I tried to include it in a MWE: ...
4
votes
2answers
728 views

Draw inside nodes to get BPMN gateway shapes

This question is a follow up to How to draw inside a TikZ node, using node style? I am trying to get the AND and XOR gateway from BPMN as seen here ...
5
votes
3answers
101 views

nodes vs coordinates. lines are drawn inside nodes

The plot tries to draw the joints and links of a robotic manipulator. Initially I defined the points for the joints as nodes and this resulted in some shift when lines were later drawn between them. ...
2
votes
2answers
90 views

how to modify the code to change the size of blocks or nodes with maintaining the symmetry

How I can change the size of nodes to add some text in it. Below is code and second diagram is generated from this code. \begin{figure} \usetikzlibrary{trees} \begin{tikzpicture}[sibling ...