{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

11
votes
2answers
5k views

Cylinder shading with PGF/TikZ

I'm trying to create a cylinder with 3D shading effects. The cylinders in the picture are standing vertically, and have a body and an end. I'd like the body to be shaded so that it varies uniformly ...
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 ...
5
votes
1answer
2k views

How to draw lines between nodes that point at the node center, but stop at the nodes edge

I'm drawing nodes on a circle and switched from drawing lines based on coordinates to drawing them based on named nodes. The problem now is, that with the following code the lines stop at the edges ...
3
votes
2answers
2k views

How to create a Node below a node

\documentclass{minimal} \usepackage[a4paper,margin=1cm,landscape]{geometry} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \begin{document} \tikzstyle{abstract}=[rectangle, ...
67
votes
1answer
10k 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 ...
6
votes
2answers
3k views

Putting a tabular in a node within a matrix

I have a picture in which each of the nodes looks something like this: \node (species1) [shape=rectangle,draw] { \begin{tabular}{c c c} \multicolumn{3}{c}{{Species 1}} \\ \colorbox{red}{G1a} ...
6
votes
1answer
1k views

tikz parabola node position

I am trying to position nodes on a parabola curve. However, it seems tikz cannot calculate the midway positions. Neither of the following examples works: \begin{tikzpicture} \draw (-1,0) ...
4
votes
1answer
1k views

TikZ: Creating stack with variable width

I am new to TikZ and want to draw a simple stack Diagram. The Diagram should look like: [a] [b] [c] [d] |-| |j| [f ] | | | | [g ] | | ...
28
votes
3answers
19k views

Tikz - How to Draw Boxes Around Set of Nodes

How to draw the boxes as shown in the attached image? I could only manage to draw the chart but could not highlight the desired node / nodes with a rectangle box. Preferably dotted. I could not draw ...
8
votes
1answer
3k views

Tikz, mindmap, and nodes - control over node radius

I'm trialling tikz mindmap as a tool for drawing network diagrams. Everything is great, however what I'd like is to be able to have some control over the node sizes. As an example, say my root note ...
12
votes
2answers
5k views

Tikz - How to connect nodes

\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \begin{tikzpicture} \draw (0,2.5) node[minimum height=1cm,minimum width=3cm,draw] (A) {A}; \draw (5,0) ...
3
votes
1answer
738 views

Parts (node) with the same height Tikz

How do I keep the two parties with the same height of 53mm? \documentclass[a4paper,10pt]{book} \usepackage{tikz} \usetikzlibrary{positioning,shapes} \begin{document} %Tikz styles ...
5
votes
1answer
1k views

How can I create a rectangle that is split vertically in tikz?

In tikz, a rectangle split node is split horizontally. According to a comment by Mark Wibrow on 2008-04-21, it is possible to create rectangle nodes that are split vertically. However, I can't find ...
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 ...
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 ...
9
votes
2answers
9k views

How to turn off drawing node border in PGF?

I'm trying to create a picture for Instant Insanity problem. Here is my following code: \begin{tikzpicture} \matrix[nodes=draw] { ; & \node{\LARGE R}; & ; & ;\\ \node{\LARGE R}; & ...
2
votes
2answers
3k views

TikZ: applying width to nodes programmatically, and 'Undefined control sequence pgf'

This is what I want to do: given two (horizontal) nodes, calculate the x distance between them, and produce a rectangular node with the same width as the x-distance between the nodes, placed below ...
4
votes
1answer
2k views

TikZ: How to rotate a matrix (of nodes)?

Please consider the following TikZ code: % aligning text in node: node[align=left] only in latest 2010 tikz: % http://compgroups.net/comp.text.tex/-tikz-option-for-ragged-left-text-in-node % or use ...
7
votes
1answer
2k views

Tikz Mindmap - how to get more nodes

% Author: Till Tantau % Source: The PGF/TikZ manual \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} \usepackage{verbatim} \begin{document} \pagestyle{empty} \begin{comment} ...
3
votes
2answers
315 views

Node with tikz and bookmarks

Is it possible to link a bookmark to the command \titA in the following example? \documentclass{article} \usepackage{tikz} \usetikzlibrary{shadows} ...
30
votes
3answers
29k views

Tikz: Multi-line text in the node description [duplicate]

I use tikz to create pictures in latex. My picture consists of set of nodes. Every node has its own text inside the node, for example, "This node is valuable": \node (mynode) [mystyle,right=of ...
7
votes
1answer
1k views

place a new TikZ node behind others

I would like to have a new TikZ node appear behind the previous one. For instance in beamer presentations for highlighting parts of code. I can do this if I place the \node before the new node and ...
24
votes
2answers
2k views

Defining a new environment whose contents go in a TikZ node

I would like to define an environment which typesets the contents in a box, and I'd like to use TikZ (I'm aware of alternatives like fancybox). So I would like something like \newenvironment{abox}% ...
12
votes
2answers
5k views

Path From and To Same Node in tikz Flowchart

I'm working on creating flowcharts directly inside LaTeX documents using tikz. I am admittedly an extreme novice with tikz, although I have quite a bit of experience using LaTeX. My problem is when ...
4
votes
3answers
2k views

How to get TikZ nodes not to change alignment?

I'm still working on rendering a nice block matrix. I've been using BMAT but it is irrelevant for the question at hand. I want to connect various entries in an array/matrix/BMAT by lines, and I'm ...
5
votes
1answer
2k views

TikZ: How to encapsulate shade in node?

I have this shaded circle: \shade [ball color=black!80!white] (0,0) circle (1); Is it possible to encapsulate it with node style and fixing the circle radius?
11
votes
2answers
2k views

How two connect any arbitrary nodes of tree in tikz

I need to be able to connect any arbitrary nodes in a tree to each other. I am using the tree package in tikz to create my tree. I cannot figure out though how to connect to nodes by let say a draw ...
18
votes
3answers
4k views

Placing nodes along an ellipse in TikZ

Is anybody aware of a simple way to place nodes at arbitrary positions along an ellipse? Ideally I would want to mimic notation like \draw (0,0) ellipse [ x radius=2, y radius = 1] node[pos=.3] ...
6
votes
3answers
3k views

How to create custom Tikz nodes?

I don't want to change style only. I want to create node that takes 3 numbers and display them with appropriate decorations. For instance: \mynode{5,6,7} Should display node with "a=5", "b=6" and ...