{nodes} is about nodes in {diagrams}.
4
votes
1answer
691 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 ...
13
votes
3answers
3k views
TikZ - multi-color double circle node
How do I draw a node with a double circle shape where one circle has a different color than the other circle?
A single \node[whatever] {content} would be nice!
7
votes
1answer
1k 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 ...
7
votes
1answer
655 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}
...
4
votes
2answers
364 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
575 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}
...
12
votes
1answer
711 views
TikZ style attribute for adding default node text?
Is there a TikZ style attribute for adding default text to a node? For instance, I want to be able to do something like the following:
\begin{tikzpicture}[%
stuff/.style={%
draw,
text=Bla ...
9
votes
1answer
169 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}
...
5
votes
1answer
522 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 ...
14
votes
1answer
2k 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 ...
5
votes
1answer
631 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 ...
1
vote
1answer
196 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
521 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}
...
6
votes
3answers
3k 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 ...
8
votes
3answers
534 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, ...
5
votes
1answer
831 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 ...
5
votes
3answers
1k 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 ...
4
votes
1answer
335 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 ...
2
votes
1answer
271 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}
...
5
votes
2answers
472 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?
3
votes
1answer
768 views
How to nest a graph within a node in TikZ and draw edges between the graphs?
I'm trying to draw a graph and have a separate graph within one of the outer nodes. I seen this question, but I don't understand how the matrix nodes will help me. I would also like to draw edges ...
8
votes
2answers
337 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}) -- ...
8
votes
1answer
637 views
TikZ: Omit {} after \node declaration for unlabelled node?
This may seem a bit trivial, but I am writing TikZ code with an enormous number of unlabelled nodes. It frustrates me that I have to type {} at the end of every node declaration. Is there some ...
2
votes
1answer
1k 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 ...
9
votes
1answer
1k 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}
...
7
votes
2answers
329 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
294 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
3answers
1k views
How can you position a node relatively to another in TikZ
I would like to place a node 'B' 60 degrees of an arbitrary node 'A' between which there is a distance of 2cm. I can do this if node 'A' is at (0, 0), so 'B' would just be (60 : 2) from 'A', but what ...
12
votes
5answers
1k views
Creating a node fitting the horizontal width of two other nodes
I have the two PGF nodes foo and bar positioned in a row.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[node ...
2
votes
3answers
3k views
TikZ: How to connect nodes and specify line direction?
When drawing a line between two nodes in TikZ, you can specify the anchors on the beginning and end nodes in order to control how the line is drawn.
I would like to specify the anchor on the ...
18
votes
3answers
3k views
TikZ: Bend text so that it follows a line
I have two arrows going from a node on the left to a node on the right. Both arrows are slightly bent. I want to label the arrows with text that is bent just like the arrows. This is as far as I've ...
4
votes
1answer
1k 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
1k 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 ...
6
votes
1answer
287 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
966 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
...
3
votes
1answer
430 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};},
...
1
vote
1answer
758 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 ...
9
votes
3answers
1k 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 ...
4
votes
2answers
570 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 ...
2
votes
0answers
124 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 ...
1
vote
3answers
350 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 ...
1
vote
1answer
1k 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 ...
5
votes
1answer
1k views
Reducing left margin inside a TikZ node
I would like to reduce the left margin inside this node:
\documentclass[a4paper,12pt,twoside]{article}
\usepackage{tikz}
\usepackage{enumerate}
\usetikzlibrary{shapes,arrows}
\begin{document}
...
4
votes
2answers
1k 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, ...
1
vote
1answer
569 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
140 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) {};
...
5
votes
2answers
1k 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 ...
2
votes
1answer
1k 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 ...
14
votes
1answer
672 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 ...
8
votes
1answer
1k 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 ...