{tikz-trees} is for questions addressing issues related to trees in {tikz-pgf}.

learn more… | top users | synonyms

5
votes
2answers
86 views

How to draw an arc between edges connecting child nodes?

I have the following code to generate a couple of trees. How do I draw arcs between the edges (marked in red in the figure)? \usetikzlibrary{intersections} \begin{tikzpicture} \node {Goto(P$_A$)} ...
5
votes
1answer
239 views

Adding arrow to one tree node and presenting tree in a step-wise fashion

I have the following MWE %http://www.texample.net/tikz/examples/probability-tree/ \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{trees,arrows} ...
5
votes
1answer
479 views

Using TikZ to create a tree with root node at the bottom

Is it possible to draw a tree with the root node at the bottom? The image below demonstrates what I'd like, but is upside down. I've looked into similar questions, most notably How do I draw a B+ ...
5
votes
1answer
295 views

Using boxes with two rows in a TikZ tree

I am trying to alter the code I made for a family tree using TikZ, by inserting birthdays in a row below a name. Here is the initial code, without the birthday rows, which has a nice output (if ...
5
votes
1answer
558 views

Incomplete arrows and missing arrow heads in TikZ

I have the following plot which looks good, but there are two issues: Not all arrows have arrow-heads. I have no idea why this is. Some edges are not long enough. For example, the left edge of the ...
5
votes
1answer
657 views

What can I do to improve the spacing in a Tikz tree?

I finally managed to make a genealogy tree with Tikz, but there are some spaces that I can't figure out how to increase between nodes: ...
5
votes
1answer
441 views

How to get text above fork style edges in a TikZ tree

I'm new to TikZ and have a problem with a decision tree. In the example below I would like to have text above the horizontal line of an edge. Something like: Check A | ...
5
votes
1answer
1k views

How to change the shape of TikZ's mindmap children?

Consider the original example of tikz's mindmap. The standard shape of both parent and children is circle. The official document states the difference of TikZ's mindmap from standard mindmaps by using ...
5
votes
1answer
150 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...
5
votes
1answer
553 views

Step-by-step revealing of tikz-tree using opacity trick and overlays in beamer

I am using the very elegant method from user Daniel described here to try and reveal my tikz-tree gradually. The brief idea is that the tree is always fully drawn to avoid "jumpy" nodes and make their ...
5
votes
1answer
197 views

Opacity in PDF not rendered the same between Adobe Reader and TeXworks

When producing a PDF from the following example using pdflatex, I get different results between Adobe Reader and TeXworks. I think this is a bug in the way that Reader handles opacity/transparency. ...
5
votes
1answer
247 views

Measuring TikZ leaves and using measurements to set sibling distance?

TL;DR Summary: Is there some way to measure the width of a leaf node and pass this measurement back up the tree to be used in setting sibling distance? (One might want to do a similar thing for ...
5
votes
1answer
160 views

How to connect two parents to the same child, with parents not in the same tree?

I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree. Here's the code I have for the moment: ...
5
votes
1answer
629 views

TikZ tree whose children are located at specified positions?

Is there a way to construct a tree whose children are located at specified positions, so that TikZ computes the locations of the other nodes in the tree based on the level distance and sibling ...
5
votes
1answer
172 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...
4
votes
3answers
646 views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
4
votes
2answers
2k views

How to draw a horizontal tree with branches on the right and left?

I need to draw trees but they should extend (from the root) on both sides. TikZ seems a good solution but do not how to manage it.
4
votes
2answers
141 views

How to split a node content/right align in tikz tree?

This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{trees} \tikzstyle{bag} = [text width=8em, text centered] \begin{document} ...
4
votes
1answer
582 views

Drawing a tree with text on the edge concisely using TikZ

I am new to TikZ and am trying to draw a tree with text only on the edge (action/line). I have managed to do it as seen below but I was hoping there was a more concise/legible way. ...
4
votes
1answer
513 views

how to draw a process flow figure?

I want to draw the process like in the picture using the code below, however, there is some problem, would someone help me? \usepackage[latin1]{inputenc} \usetikzlibrary{trees} ...
4
votes
2answers
404 views

Making mixed trees with and without text-containing nodes

I’m using TikZ to draw linguistic syntax trees where some nodes have textual labels and some nodes don’t. I’d like the branch from a labelless node to continue at the same angle into the right hand ...
4
votes
3answers
1k views

Probability tree using TikZ for Bernoulli experiments?

Consider the tree below. Is there an easy way to label every left edge q, every right edge p, every left node f and every right node r, without doing it manually for every level? Second question: Is ...
4
votes
1answer
453 views

Using TikZ, how can I bend the edge between two nodes in a tree?

I tried setting edge from parent/.style={draw, bend left=60}, but the line remains straight. What am I doing wrong? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ ...
4
votes
1answer
542 views

How to draw custom nodes attached to tikz-qtree?

I want to draw a tree which is similar to the Merge sort recursion tree in this Tikz sample from TeXample.net: However, I don't want to draw all the + and = signs, I just want two columns: one from ...
4
votes
1answer
193 views

Draw curved arrows between nodes in tikz-qtree

Is there a "clever" way to draw curved lines between nodes without them to go all through the picture? Here is my MWE : \documentclass[11pt]{beamer} \usepackage{ulem} \usepackage{tikz-qtree} ...
4
votes
1answer
288 views

how to add dotted line and arc line?

I wish to add dotted line connecting two nodes and an arc line as described in the photo. Here is my code: \documentclass[tikz]{standalone} \usetikzlibrary{ shapes.geometric, positioning, ...
4
votes
2answers
231 views

Creating a punktchain or flow diagram in tikz/pgf latex that is two column then merges to one and back to two

I have update the example code with some of the comments to get really close to what I want. Now I just want two lines coming out of filter 1 and filter 2 inline and with the same line style as ...
4
votes
1answer
167 views

How to draw search space tree in a dynamic manner

I am visualising the search space for a set of binary variables. I have done it for three variables before; and now I am extending it to six but seems a tedious work to do. Thus, I am wondering if ...
4
votes
1answer
184 views

tikz-qtree mangles edge anchors in trees [duplicate]

Possible Duplicate: tikz-qtree spoils tikz trees When I draw a tree using TikZ, for example \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{every ...
4
votes
1answer
1k views

TikZ-tree: edge-alignment in horizontal org-chart

I'm working on some sort of org-chart/hierarchy-tree and ran into issues with the edge-alignment. As a guideline I used the family-tree-TeXample. See the TeX.sx-dicussion here. However, the text in ...
4
votes
1answer
2k views

Probability Tree-diagram with TikZ

Thanks for helping me out. How can I make the following tree-diagrams? http://www.vias.org/tmdatanaleng/cc_prob_cond_independ.html
4
votes
1answer
135 views

Drawing tree in text (like inline math)

Is there a way to draw (with tikz/tikz-qtree) a tree directly in the text, like the inline math command? For a small tree with 2 or 3 nodes? Thanks!
4
votes
1answer
219 views

How to shift a subtree of a tikz tree horizontally

how can I shift a subtree of a tikztree/qtree to the right without affecting the rest of the tree? Consider the following tree: \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} ...
4
votes
1answer
110 views

Right shift of a node in a tree

I want to shift a node to the right because it coincides with another node: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[sibling ...
4
votes
1answer
339 views

Horizontal chart-style arrows between nodes

I have five nodes defined and positioned as following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning, fit, calc, shapes, arrows} \renewcommand{\figurename}{Figure} ...
4
votes
1answer
497 views

how to draw tree with a specified width between nodes

Below is what picture i want Words of level 1: Rule Words of level 2: Length Pattern Arcs Words of level 3: T1 T2 A1 Words of level 4: term_index term ...
4
votes
1answer
228 views

TikZ - Smooth curve surrounding points without specifying control points

This is what I have right now: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,automata} \definecolor{light-gray}{gray}{0.6} \begin{document} \begin{tikzpicture}[line ...
4
votes
1answer
217 views

Uncover parts of a tree in TikZ

I'm trying to apply Daniel's method to uncover the bottom right part of the tree in the following MWE. However, when I pass the option [visible on=<2->] to one of the children, it appears to ...
4
votes
2answers
665 views

complex nodes with tikz-qtree

I am trying to convert my tree-dvips trees into something that is compatible with xelatex. I had a look at the tikz-qtree package, but it seems to be impossible to set complex nodes. In the old qtree ...
4
votes
0answers
161 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
3
votes
3answers
283 views

Overlap in graphing TikZ picture

I'm drawing trees in graph theory. Some of the nodes are overlapped. Can anyone help? % Red-black tree % Author: Madit \documentclass{article} \usepackage{tikz} ...
3
votes
4answers
405 views

What is a more efficient way to draw this tree?

I have drawn the following tree in TikZ. What I don't like about it is that I have to manually adjust the sibling distance for each level; and the syntax is too cumbersome. It has been suggested ...
3
votes
3answers
1k views

Why is this tree overlapping and missing edges?

\node [circle, draw] at (6, 0) {63} child{node [circle, draw] (left node) {26} child{node [rectangle,draw] (left node) {A:12}} child{node [circle, draw] (right node) {14} ...
3
votes
2answers
679 views

Is this a TikZ bug?

I have this TikZ code: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} [ level 1/.style={sibling distance = 2cm, level distance = ...
3
votes
2answers
97 views

How to define edges in tikz

When I use absolute position for the edges, I get almost intersecting arrows. Here is my code. Kindly help. \begin{tikzpicture} [ node distance = 2cm and 0.8cm, >=stealth, ...
3
votes
2answers
162 views

How to make Tikz Node Content fit?

I'm trying to make a decision tree with Tikz, but the text in my nodes overlap. Does anyone know how to fix that? Thanks so much! \begin{tikzpicture} \node {{Lorem ipsum dolor sit amet, ...
3
votes
1answer
548 views

Dimension too large with tikz-qtree

I want to draw a tree with tikz-qtree, but it bails with Dimension too large. \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{pdflscape} \usepackage{tikz} ...
3
votes
2answers
694 views

tikz tree fork down edge labels

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level distance=1.5cm, level 1/.style={sibling distance=3.5cm}, level 2/.style={sibling ...
3
votes
1answer
398 views

how to draw arrow that looks like the symbol “\leadsto” in latex?

please refer to the answer of how to draw a process flow figure? Now I what to change all arrows look like \leadsto in latex, you are refer to the picture I can not find it in the manual, ...
3
votes
1answer
82 views

tikz draw tree with extra column

01, 001 and 0001 are not actually "childs". How do I add K=1,2,3 and K=4 to the left hand column? And I tried really hard to adjust the distance. But this is the best I can do. Thanks. ...