{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

15
votes
3answers
3k views

Put a node behind another in a TikZ diagram

I want to place a node, that is kind of a note, behind another node. However, I need to put the reference node before the note, so I can place the note in a relative position to the reference node. ...
10
votes
2answers
2k views

pgf(plots) node shadow/opaque pin

Is it possible to place a shadow/fill/opaque setting on text of a node pin? I know I can do that with the actual node, but I am using \node in pgfplots to mark some stuff on graphs, and it would be ...
4
votes
1answer
622 views

TikZ: Rectangle spanning a submatrix, as a node

I specify the corners of a rectangle, spanning a certain submatrix of a matrix, and want this rectangle to be a node. The minimal example is: \documentclass{standalone} \usepackage{tikz,pgf} ...
3
votes
1answer
905 views

How to draw arrow and loop with rounded heads instead of arrow shapes?

Can any one help me with this. I want to draw an arrow and a loop with rounded nodes as in the image? I am waiting for your expertise.
16
votes
4answers
8k views

Nested TikZ nodes

This isn’t the first time this question was asked but the other solutions don’t work in my case. Consider the following image: It was created using this code: \begin{tikzpicture}[ node ...
7
votes
1answer
5k views

Package pgf Error: No shape named X is known

I can't get this document to compile: \documentclass{article} \usepackage{tikz} \usetikzlibrary{snakes,arrows,shapes} \begin{document} \begin{tikzpicture}[>=latex',line join=bevel,] ...
6
votes
1answer
944 views

Consistent Pgfplot Labels Positions with/without Gnuplot

I like that I can place a node at the end of plot and the node appears relative to the last point on the graph. When the domain is specified in increasing order \DomainMin:\DomainMax, the label gets ...
7
votes
1answer
4k views

Using [midway] to label a curved path at its centre

I am trying to label two curved paths connecting two nodes with labels placed at their centres using the node[midway] option. This is something that should be very simple but I have not been able to ...
15
votes
2answers
701 views

How to center a typewriter (ttfamily) '+'

I would like to draw a circular TikZ node with + in its center, but font=\ttfamily moves it up. Why? How to solve it? \documentclass[border=3mm]{standalone} \usepackage{tikz} \begin{document} ...
31
votes
1answer
501 views

How can I know if a node is already defined?

I think I've seen this question before, but I can't find it. The problem is simple; before I assign a name to a node I would like to know if the name is already used. I think when a node is created ...
5
votes
1answer
2k views

pgfplots: nodes near coords only for one plot

Does anyone know how to set up pgfplots to print nodes only for one and not for all plots? For example, in 1 I would like to see the nodes only for the test-plot and not for the trend-plot. You will ...
5
votes
2answers
496 views

Redraw a kernel scheme diagram

I'm trying to redraw a kernel scheme diagram for a university lecture note. This is how far I got: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
9
votes
1answer
3k views

Triangle node with adjustable height

I'm trying to draw AVL trees with TikZ, what I need is: Binary tree with simple circle nodes, and adjustable height triangle (or rectangle) nodes for subtrees, both containing only single ...
4
votes
1answer
2k views

Creating custom electronic components in TikZ

In Tikz there is an opportunity to draw logical gates,... I was wondering if it is possible (and easy) to make custom components, like a CMOS-transistor, a Multiplexer, flip-flop,... Perhaps these ...
8
votes
1answer
1k views

TikZ: vertically aligning text in nodeparts

I can't seem to vertically align text in different nodeparts of the same node. This MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} ...
11
votes
1answer
1k views

TikZ: connecting nodeparts

I'm new to TikZ. Last couple of hours in fact. I was wondering if there was a way of connecting nodeparts from different nodes. Here's an example \documentclass{article} \usepackage{tikz} ...
7
votes
1answer
1k views

Customizing the splitting line when using nodes with multiple text parts in TikZ?

I'm wondering, is it possible to customize the splitting line when defining a node which has multiple text parts? For instance, instead of a solid line, I would like it to be dotted or dashed. For ...
10
votes
1answer
247 views

tikzpicture has a node whose text is a tree: unevenly formatting

I want to typeset a picture similar to the following one, using tikz. For that purpose I have written the following latex document \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{chains} ...
1
vote
1answer
324 views

Tkz-berge does not respond to node-distance specification

I'm having some issues with the latest version of the tkz-berge package: it seems to be ignoring node-distance specifications. If I compile this file (using example n. 39 from the tkz-berge ...
3
votes
2answers
1k views

How to make two rectangles top adjusted horizontally in TiKZ?

I have 2 rectangles and an operator between them, the one on the right is longer than the one on the left: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} ...
7
votes
3answers
13k views

TikZ: position with different anchors

I would like to label lines at the same midway horizontal position (pos=0.5). But as the second line is tilted, the labels lower left corner should touch the line. Hence, I would need to manually ...
4
votes
2answers
830 views

TikZ: arrange trees block by block

I use TikZ to create trees. Now I've to arrange four trees in a matrix like this: Tree A Tree B Tree C Tree D I already tried the \matrix command. This works, but it leaves absolutely no space ...
11
votes
3answers
733 views

How to rotate hyperlink with text

How can I rotate the link of a text in a node. Here is my MWE: \documentclass{article} \usepackage{tikz} \usepackage{hyperref} \begin{document} \begin{tikzpicture} \node (rect) [rectangle, ...
6
votes
1answer
3k views

Forcing TikZ minimum size for nodes

I have a tree structure consisting of many unlabelled nodes. However, for some reason the nodes are far larger than I would like and appear to have a minimum size below which the minimum size key is ...
6
votes
1answer
687 views

How to generate named nodes from the counter used in `foreach` in TikZ?

I'm trying to generate multiple nodes in TikZ using the foreach operator, but whatever I try I get compilation errors. I need all nodes to be named in order to draw edges between them. Having read ...
6
votes
3answers
3k views

Why doesn't relative coordinates in TikZ work with this example?

I was working on a figure, and for some reason relative coordinates have stopped working (it did before). I removed all code down to a bare minimum, and they still don't work. I don't know what I've ...
2
votes
1answer
2k views

Aligning nodes with TikZ

Consider this: There are several problems: The \exists operator is not horizontaly aligned with the following node (a,b). There is too little space between foobar and the node below it and ...
2
votes
1answer
368 views

How does one use \node[inner node]{}?

I'm trying to reproduce a TikZ tree from a Till Tantau presentation (see pg.33 of this .pdf) My code is as follows: \documentclass{article} \usepackage[latin1]{inputenc} ...
9
votes
2answers
1k views

Position a node a certain distance away from another node at a certain angle in TikZ?

Like the title says, is it possible to position a node a certain distance away from another node at a certain angle from that node?
9
votes
2answers
662 views

Is it possible to use a macro to name a TikZ node?

Is it possible to use a macro to name and reference TikZ nodes. For example: \begin{tikzpicture} \node (0) at (0,0) {X}; \node (\mymacro{2}{3}) at (1,2) {Y}; \draw (\mymacro{2}{3}) -- ...
6
votes
1answer
365 views

Drawing full nodes whose center is not clipped by some path

Goal I would like to draw full nodes whose center is not clipped by some path. How the solution would possibly work? To be better understood I would describe it in two steps: clip before drawing ...
4
votes
1answer
4k views

Change line spacing inside a node in TikZ

Inside a TikZ node, one can force line breaks using \\ providing the align option of the node is set. I would like to increase the line spacing inside a node. This can be done in the usual way with ...
10
votes
1answer
2k views

TikZ edges to/from center of nodes

Normally a edge drawn between two nodes starts and stops and the boundary of the nodes. How can one draw an edge to the center of a node? \documentclass[12pt]{article} \usepackage{tikz} ...
8
votes
2answers
455 views

TikZ/PGF: Create a saved length as part of a shape definition

When I create a new shape using pgfdeclareshape, I want to be able to store a length for later reference. I might want to do simple arithmetic on this length later on. Here's a basic attempt: ...
1
vote
0answers
413 views

Question regarding add node with text within TkiZ package? [closed]

I followed an example from TikZ manual, and modify mine to add an extra node with text below a given node. This is the example from TiKZ manual, And here is the code, So I modified my code to fit ...
4
votes
1answer
2k views

TikZ: Background rectangles with equal width but 'fitting' height

I'm trying to make sort of a flow chart for a series of steps, but these steps are also grouped, and I'd like my diagram to reflect that. So I'm using the pgfonlayer/background environment to draw ...
3
votes
2answers
2k views

TikZ: position a node depending on width of text?

I need to use TikZ to draw two horizontally-spaced nodes, and an arrow between them, labelled by some text. But the arrow has to be exactly the right length to fit the text, and this will be part of a ...
3
votes
1answer
555 views

Placing a list of nodes in TikZ

I would like to define a macro, which would take a list of node definitions, like this \mymacro[boxes={{\node[rectangle] {foo};}, {\node[rectangle] {bar};}, ...
4
votes
1answer
2k views

Vertically center a node with the current line in TikZ

Consider the following: \documentclass{article} \usepackage{tikz} \begin{document} This is a \begin{tikzpicture} \node[draw, rectangle, align=left] {% And here \\[.3em] is ...
12
votes
3answers
3k views

Horizontal row separation line in tikz matrix (like \hline in tabular)

In this question tikz-matrix-as-a-replacement-for-tabular a nice solution was given to let the matrix in tikz behave like tabular. In this solution cell/.style={rectangle} was used to draw lines ...
1
vote
1answer
1k views

Split node padding when using `align` in TikZ

Consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,positioning,fit} \begin{document} \begin{tikzpicture} \node[draw, rectangle split, rectangle split ...
2
votes
0answers
130 views

Is there an easy way to make bifurcating/converging edges in TikZ? [duplicate]

Possible Duplicate: Using relative coordinates in TikZ to draw joined curves The problem This problem is thematically related to this question, in fact, I was going to ask roughly the same ...
2
votes
3answers
1k views

pgf macro that returns a node

How can I write a macro that returns a coordinate (or a node). The node must be usable within a tikzpicture environment and preferably inside a path declaration. I need something like the following ...
3
votes
1answer
2k views

Example of system architecture picture in TikZ

I am looking for an example of a system architecture diagram in TikZ. I would like to draw a picture similar to this one: Therefore I search for existing shapes for: cloud (Current State), database ...
4
votes
2answers
2k views

How to prevent a TikZ arrow from touching a node?

I am using TikZ to draw some trees in my thesis. This is a sample of what is being done: \documentclass{article} \usepackage{tikz-qtree} \newcommand{\Ta}{ \begin{tikzpicture}[level distance=30pt, ...
3
votes
1answer
2k views

What's wrong with the fading of this TikZ node's shadow?

I'm trying to add a shadow with a faded edge to nodes. With the following document I only get a grey circle, with a hard edge, slightly below right of the node. This is a snippet form my code. What ...
2
votes
1answer
774 views

using foreach to draw a chain with a branch

This is an extension to How to draw the border of a node using late options I'm drawing a chain of nodes with different colors using foreach from tikz. Now I want to add a branch, also using foreach. ...
8
votes
2answers
161 views

Are there any differences between a “newly defined” path and a path using predefined nodes?

I am not sure how I should phrase my question. consider the following example \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[inner sep=0] at (0,0) (a) {}; ...
7
votes
2answers
2k views

How to draw the border of a node using late options

I want to create a series of rectangles, each with a different shade. The shade varies from white to black. I want to make the white (first) rectangle visible by drawing its border. My first step is ...
22
votes
1answer
5k views

Draw edges and paths in the background of nodes in TikZ

Is it possible to draw edges or paths in the background of nodes independently of whether they are constructed before or after the nodes are defined? In the following example, the \draw instruction ...