{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

2
votes
0answers
120 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 ...
4
votes
1answer
257 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} ...
3
votes
2answers
181 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] ...
2
votes
1answer
421 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
124 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 ...
4
votes
1answer
141 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)$) {% ...
6
votes
2answers
433 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 ...
9
votes
3answers
279 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 ...
2
votes
1answer
175 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
68 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} ...
3
votes
1answer
114 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
273 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
335 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
236 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
67 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? ...
4
votes
2answers
58 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
102 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
18 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
0answers
121 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
218 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
61 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
392 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 ...
1
vote
1answer
150 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
110 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
200 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 ...
4
votes
1answer
101 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
35 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
1answer
111 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 ...
6
votes
1answer
162 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} ...
5
votes
2answers
176 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 ...
1
vote
2answers
97 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] ...
7
votes
1answer
158 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. ...
2
votes
0answers
83 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 ...
1
vote
0answers
64 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
117 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, ...
4
votes
1answer
128 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
85 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
63 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} ...
1
vote
1answer
33 views

\fill left of a node using the positioning library

How can I position a \fill relative to a node? I would position a node in the following way, using the positioning library: \node (mynode) at (2,4) {text}; \node [left=of mynode] {o}; But if I try ...
5
votes
1answer
52 views

Minimum width for 2 nodes at once

In this MWE, I can put a minimu size by hand, but how determine it automaticaly: let say max width of the two nodes + 4pt on each side ? \documentclass[french]{article} \usepackage{tikz} ...
6
votes
1answer
111 views

Global use of values obtained in draw let

In one of my tikzpictures, I found an angle I labelled \n2. I would like to use this value to rotate a node. However, when I try, in the node options, rotate = \n2, I am told undefined control ...
3
votes
3answers
154 views

Size of circle path vs. circle node in \pgfdeclareshape?

I'm trying to "overload" a rectangle node as a custom shape, such that it has a circle on its south west corner. In the MWE below, I use \circsize to set the size of the circle - and for testing ...
2
votes
0answers
105 views

Lattice or Per Gelosia multiplication - how to avoid the use of the fp package

Is there a simple way to improve the harmony of the nodes in particular of the upper row and the right column distance ? Edit Thanks to egreg the node are more in harmony. Still : Is it possible to ...
7
votes
4answers
328 views

How to label the curve of a function at any point along it in tikz?

In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error ...
5
votes
1answer
89 views

Error with newcommand and \def

Can anyone ples help with this problem: \documentclass[fontsize=12pt,paper=a4,headsepline]{scrartcl} \usepackage{chemfig,chemmacros} \def\nc{\arrow{0}[,0]} \begin{document} What it is: ...
4
votes
1answer
115 views

Remove node name from tikz style

I have this code which I have adapted for my use case. I am creating a bunch of nodes and connecting them together. The problem is, the node name appears in the figure (namely h1,... and v1...). I ...
4
votes
2answers
227 views

Circuitikz: arrows on the path and changing directions of arrow with variable resistor

For my R_2(t), I would like the arrow bottom left to top right of the resistor. Is there a way to swap the arrow direction? Also, above the non-linear resistor, how can I add an arrow on the path? ...
1
vote
1answer
120 views

Tikz: How to combine orthogonal edge syntax with coordinate calculation? [duplicate]

I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example: \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) ...
7
votes
1answer
192 views

How to “outline” a path in TiKZ?

I have a drawing in TiKZ (of a graph, say) and I want to highlight two paths in the drawing. Is there a way to do that using my already-defined node names, without explicitly making new coordinates? ...
3
votes
1answer
99 views

Automatic pin position on pgfplot when using custom axis

I'm trying to put automatically label several plots. For this purpose, I just discover the pin option to add it to the plots. This solution works rather well, and semi-automatically. However, when ...