{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

5
votes
4answers
152 views

How can I make TikZ nodes center on a particular symbol/operator?

Here is a small example document. \documentclass[a4paper]{amsart} \usepackage{tikz} \newcommand{\dju}{\mathbin{\coprod}} \DeclareMathOperator{\id}{id} \begin{document} \begin{tikzpicture}[x = ...
2
votes
2answers
94 views

How do I draw shapes inside a tikz node?

I know how to draw different shapes using tikz, like this: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) ellipse (1 and 1.5) (0,2.5) circle (1) ...
5
votes
1answer
70 views

Change node style in a tikz picture

I'm trying to change the node style so a node looks like a cylinder with a variable height. currently i'm using this code \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
2
votes
0answers
54 views

Beamer - Title page is perturbed when adding notes

I'm working on a Beamer presentation in which I want my notes to be along with a small preview of the current slide only (bigger than the default). I worked on the following MWE, which seems to work ...
3
votes
1answer
86 views

change position of TikZ node halfway

I am trying to move the node "H" to one of the two positions shown in red below: I am not sure how to position it at 'intermediate' positions such as I am suggesting. How could this be done? Is ...
3
votes
1answer
82 views

Customizing itemize inside a node in beamer

I am working with the MWE below and I am trying to do something that seems to be easy, but I cannot figure out. \documentclass{beamer} \usepackage{tikz} ...
53
votes
1answer
6k views

Difference between “right of=” and “right=of” in PGF/TikZ

In the PGF/TikZ manual, sometimes I see the option right of=somenode instead of right=of somenode. They look very similar, but the effects are different. The distance between nodes positioned with ...
3
votes
2answers
147 views

Tikz: How to Align the Text of simple Nodes?

I tried to put up a nice little graphic, to make an example for String-Matching. My Problem is the "b" is not aligned with a and c and i can't find a way to handle this: \begin{figure}[h] ...
4
votes
1answer
63 views

Beamer Title Inside Node — Line Break

I am creating my own beamer theme, and the way I have conceived the title page needs the title to be inside a tikzpicture node, in this form: \node [anchor=center] (title) at ($(box)+(0,.25)$) {% ...
2
votes
1answer
18 views

Illegal unit of measure (pt inserted) error when using \foreach with node[pos]

I am trying to draw a path and position nodes on it and fill them using this code and it works \documentclass[varwidth=20cm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ...
3
votes
1answer
63 views

Syntax for the node command

Look at the two diagrams at the top of page 50 and the diagram at the top of page 220 in the manual at the following web site. http://mirrors.rit.edu/CTAN/graphics/pgf/base/doc/pgfmanual.pdf I have ...
9
votes
3answers
193 views

How can I move a single node in a tikz plot?

I can't find an answer online, please help me. The following plot shows the percentage of 3 groups. The red line is the average (and needs to stay at 13.8). How can I move ONLY the node "2.9" a ...
6
votes
2answers
132 views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
24
votes
1answer
3k views

Creating node shapes

I am currently learning how to use TikZ/PGF to make some figures for a project report, and so I have a question: Is there is a practical way of making a particular object into a node? The object ...
3
votes
1answer
134 views

Different shading for multi-parted tikz node

Please consider MWE below: \documentclass{standalone} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \usepackage{lipsum} ...
2
votes
1answer
91 views

Draw nodes in ring form

I want to use this drawing of a neural network and extend it to a recurrent neural network. To do so I'd like to arrange the hidden nodes to a ring and connect every hidden node with the other hidden ...
0
votes
1answer
53 views

How can I connect centers of nodes defined using let in a foreach loop?

I want to create a star polygon using a \foreach loop to make nodes for the vertices and another \foreach loop connecting, say, every 4th node. \documentclass[12pt]{amsart} \usepackage{tikz} ...
5
votes
3answers
265 views

Tikz: How do you label a circled node to the left without collisions?

I'm trying to label a circled node in Tikz with some text to the left. The problem is it is colliding with the circle. For example I have something like: \begin{tikzpicture} \node[draw,circle] at ...
8
votes
1answer
1k views

Edge nodes, auto and node distance

Consider the following MWE \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(1,1) node[auto,midway] {$A$} -- (2,0) node[auto,midway] {$B$}; ...
7
votes
5answers
2k views

TikZ Node with multiple shapes

My use case is drawing a ticked box in line with normal text like this: "Hello ☒ World." (unicode example, your mileage may vary). One solution I managed to come up with is the following rather ...
12
votes
2answers
535 views

Naming the nodes of `nodes near coords` for later use

I would like to use pgfplots command nodes near coords to get a list of named node ((no1), (no2), (no3) etc.) that I can use afterwards to draw some paths that I fail to construct with pgfplots only. ...
3
votes
1answer
58 views

pgfplots: node positioning

I want to place a node at the end of a curve. Since I did not find an automatic way to realize it I tried to place it manually. But the node does not appear at the expected position. It's placed near ...
9
votes
3answers
187 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 ...
3
votes
2answers
94 views

Adding arrows to a Gantt chart?

(To-the-point question at the end of the post) I am using the following snippet to draw Gantt diagrams, taken from this source: % GanttHeader setups some parameters for the rest of the diagram % #1 ...
4
votes
1answer
62 views

TikZ: How to center the text in a node with the scrartcl class

I want to draw a probability tree. In Beamer it looks good. But in scrartcl the texts in the node are aligned right. I want the text to be centered. How can I solve this? ...
1
vote
2answers
75 views

tikz-qtree: Beginners Problems

Hello im not a Linguist and have some trouble with trees. \begin{tikzpicture}[grow'=up] \Tree [.a [.b [.c [.d e]] [.f g] ...
4
votes
2answers
53 views

node style is only taking partial effect in a matrix of nodes

This is probably the first of two closely related questions. I have defined a style: my node style/.style={%% minimum width=\dimexpr0.60in+12pt\relax, minimum ...
2
votes
2answers
56 views

pgfplots- Adding a mark at the origin

I'm trying to show the beginning of a sketch of the graph y=xe^x, and this is what I have: \documentclass[10pt]{article} \usepackage{tikz} \usepackage{pgfplots} ...
0
votes
0answers
16 views

How to debug the “Argument of \XC@definec@lor has an extra }” error in Foreach statement? [duplicate]

First, I draw three nodes each of which has three parts. Everything is OK. The code and the image are as follows. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{tikz} ...
4
votes
1answer
121 views

tikz def node name (or reference) for nodes create using the def

I have the following definition in order to create a node with cylinder shape \def\dnc[#1,#2,#3,#4]#5{ \node[draw, cylinder, alias=cyl, shape border rotate=90, aspect=1.6, % minimum height=25, ...
4
votes
0answers
96 views

TikZ: turn a box into a shape

I want to turn a rectangle with ports in the top and bottom into a shape I can use with a node. How can I do this? \documentclass[tikz,14pt,border=10pt]{standalone} %%%< \usepackage{verbatim} ...
5
votes
3answers
162 views

Table of x-y values with first and second order differences

I would like to code a pages of notes that has the layout shown in the picture below. My question is the most efficient way to do this with LaTeX. I would think tikz with lots of nodes and edges, but ...
3
votes
2answers
45 views

Place node above specific path segment

I am trying to put a node above a specific segment of a path that is "bent" using "|-" (kind of broken into segments). A minimal example follows here: \begin{tikzpicture} \node[rectangle,draw] ...
6
votes
3answers
197 views

Make a polygon with automatically labelled nodes according to their coordinates

The goal: Make a polygon (and a circle containing that polygon at the nodes of the polygon, without the polygon's lines) with automatically numbered nodes according to their coordinates (x,y) [which ...
18
votes
2answers
1k views

Accessing the logic values of a TikZ coordinate

In TikZ accessing the coordinate values of a node can be done using the let syntax of the calc library or using the PGF command \pgfpointanchor. However, this values are dimensions/lengths in points ...
1
vote
1answer
78 views

A dotted circle: control size of dots and distance between them

My MWE is: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[red,dotted] (0,0) circle (2); \draw[black,thick] (5,0) circle (2); ...
4
votes
3answers
96 views

Nodes and text positioning

I want to use tikz to draw circle nodes with inside a text in math mode that has the following structure. A variable plus potentially a subscript and/or a superscript. I want the position of the ...
6
votes
1answer
144 views

ADC in tikz (circuitikz)

How it is possible to draw an ADC (analog to digital converter) with tikz library ? Some Simple ADC like this ? What is the right way to place nodes on such rectangle so that i can use it further ...
5
votes
1answer
57 views

Tikz fit library: fitting only one dimension and accumulating calls

The fit library is very useful for adjusting the size of a node to fit other nodes inside it. It is also useful in conjunction with shift to make a node span to the width/height of other nodes but ...
4
votes
1answer
83 views

Is there a way to forget node names between TikZ pictures?

I have a document with several TikZ pictures in it. I generally use simple names for the nodes such as: \node (A) at ..... \node (B) at ..... and so forth. Because of this I have name clashes ...
3
votes
0answers
33 views

Why does the meaning of “above” seem to change when my “shift” coordinate changes?

The only difference between these two examples is the size of the xshift. The MWE with xshift=-1.5in and xshift=-1.0in places the text where I expect, but not with xshift=-0.75in and xshift=-0.5in: ...
5
votes
2answers
80 views

Nodes near coord overlapping…how to shift up

I am using nodes near coords but as you can see the values on the bottom are overlapping. I have tried placing them manually but that hasn't worked either...How to just shift up the nodes so they do ...
6
votes
1answer
121 views

Insert text in a pie chart

I try to insert text in nodes and need help. How to fix the placement of each text ? Thanks \documentclass[border=10pt]{standalone}%{article} ...
2
votes
0answers
74 views

Colour of edges according to edge value

I am currently modelling traffic and my map of roads consists of nodes connected with lines. For each road there is maximum capacity and amount of traffic and each road therefore has a utility value ...
7
votes
1answer
110 views

Text doesn't fit the box

I created the following picture with Inkspace and made export to tikz. The problem is that the text doesn't fit the boxes. And the arrows should be colored with a gradient, but it's not so important. ...
1
vote
0answers
49 views

Straight lines look out thicker than diagonal [closed]

I am currently creating a graph of connected nodes i tikz. When I draw a diagonal connection using: \draw[solid] (a) --node[midway,right](){0.3} (b) the line looks much thinner than when a draw ...
4
votes
1answer
87 views

Place numbers on edges between nodes in tikz

I am creating a graph of connected nodes and I want to have numbers on all edges that connect the nodes. At the moment it looks as follows: \begin{figure}[H] \begin{tikzpicture} \node[shape=ellipse, ...
3
votes
1answer
83 views

Overlay edge between two tikz nodes

I want to have two nodes in Tikz, filled with text. Then I want an edge from one position in the first node to another position in the second node: This is what I tried: Inside the tikz nodes text, ...
3
votes
1answer
65 views

Text alignment in nodes

Why 360 is not vertically aligned with Angle ? I changed text width but it's not better ... \documentclass[tikz,margin=3pt]{standalone} \pgfkeys{/tikz/.cd, BLS/.store in=\BLS, ...
5
votes
1answer
56 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} ...