Questions tagged [tikz-trees]

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

tikz-trees is used to draw trees using TikZ.

1240 questions
30
votes
3 answers

How do I make an unbalanced binary tree?

How do I draw just a tree with one child using tikzpicture? As shown in the picture, I want to have a tree like (1). But I have only been succesful in getting a picture like (2) and (3) using: \begin{tikzpicture} \node[circle,draw](z){$30$} %…
Lekensteyn
  • 532
  • 1
  • 4
  • 10
10
votes
2 answers

Joining two branches of a family tree

I'm trying to write out a family tree for a friend, and I have a few minor issues. My code is \documentclass{article} \usepackage{tikz-qtree} \begin{document} \tikzset{edge from parent/.style= {draw, edge from parent path={(\tikzparentnode.south) --…
yunone
  • 3,259
9
votes
1 answer

Decision Tree with Tikz

I am trying to draw a decision tree. I have gotten very close to the end result with this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees,shapes,snakes} \begin{document} \tikzstyle{level 1}=[level distance=1.5cm, sibling…
ravl1084
  • 441
9
votes
3 answers

How can I make Tikz tree node arcs not cross over each other?

I am trying to build a tree (the theme is argumentation theory, where arguments attack and defend each other) in Tikz but after a few levels down the tree, nodes are placed on top of each other or in a way that the arcs to their parents cross over…
8
votes
3 answers

Create simple list of trees in TikZ

I generated this image in Inkscape because I don't know enough TikZ to write a description of it in that language, but given the amount of examples of TikZ trees available online, it strikes me as comparatively easy. I know I can generate eg. the…
Anaphory
  • 440
  • 2
  • 10
8
votes
1 answer

Decision trees in Tikz

So I can do this: But I want to do this: That is, its easy to add text alongside the connectors (either slanting alongside them or straight), but I would like part of the connector to be flat with the caption text along the flat part for better…
7
votes
1 answer

Organisation chart in latex using tikz

I would like to do a organisation chart with pictures, name, mobile.nr and email in each node... I tried with the tikz tree bit failed. How can i add pictures in a node? Can someone help me? Please
Jocken
  • 123
6
votes
1 answer

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 someone knows how to post output here, please do so…
KCd
  • 295
6
votes
1 answer

Draw Morse tree with tikz

I like to replicate this Morse tree from Wikipedia with tikz \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[nodes={draw, circle}, thick] \node{Start} child { node {E} edge from parent [dotted] …
6
votes
3 answers

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…
user9424
6
votes
2 answers

Code for binomial tree does not work after one year

I have troubles when running my old Latex code today (I guess because the corresponding package changed). The problem is that now Latex gives me many errors related to the node names. What should I change to make it work…
6
votes
1 answer

Tikz trees - line feature

In my MWE : why line width=0pt doesn't work ? why the dashed argument on a level leeks on the next ? \documentclass[tikz]{standalone} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level distance=5mm, level 1/.style={sibling…
Tarass
  • 16,912
5
votes
1 answer

linking cousins in a binary tree

I constructed the horizontal links between some pairs of first, second and third cousins in this binary tree by hand. I'd like a tikz solution. The particular links can be hard coded. It would be nice if I could experiment with line weights. Edit:…
Ethan Bolker
  • 9,333
  • 3
  • 42
  • 69
5
votes
3 answers

How to convert my word organisation chart to latex

I am trying to convert my word document to latex document. I have an organization chart similar to the following picture: I tried the following code in latex but the result is not similar to…
5
votes
2 answers

How to break lines in a node of a tikz tree

This is the code I have: \begin{tikzpicture} \tikzset{edge from parent/.style= {draw, edge from parent path={(\tikzparentnode.south) -- +(0,-5pt) -| (\tikzchildnode)}}} \Tree [.Fibres …
1
2 3
10 11