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

learn more… | top users | synonyms

1
vote
1answer
103 views

Making trees(time to most recent common ancestor) along a DNA sequence

Hi I have a DNA sequence and i want to draw a figure that says the tree height ( time to most reason common ancestor) can change. It is a rather difficult job and I can't figure out how to draw the "...
5
votes
1answer
318 views

Drawing Markov Decision Processes with Tikz

I thought this would be much easier. I am trying to recreate the standard MDP graph that is basically the same as a Markov Chain (I know a lot of posts about that) but with the addition of lines that ...
2
votes
1answer
55 views

tikz: Shifting a node

I'm new to tikz so any advice appreciated. I have the following tree, but I need the FP node to be an the same level (vertically) as the price node. \begin{tikzpicture} [level distance=10mm, level 1/....
3
votes
1answer
79 views

Display tikzpiture environment in Righ to Left direction in a Document using a language with Left to Right direction as the main language

I write a document with mixed languages having different writing direction. The main language is in left to right direction. I want to write a tree diagram in another language having right to left ...
1
vote
2answers
42 views

vertical line and extension of node in tree

I'm trying to generate a tree that has a vertical line coming through exactly in the middle, right after the 0.5 on the top node, and the 2 on the bottome node, and I would like to write 1.25,1.25 ...
3
votes
3answers
338 views

Tree structure in latex

I have trying to get this tree structure in latex but I don't find any example. Can someone help me? []
3
votes
2answers
229 views

How can I add the line above this tree?

I want to add a line 1st toss, 2nd toss, 3nd toss and outcome like this picture I tried \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \...
4
votes
1answer
121 views

Revealing tree on beamer bottom-up using tikz

Unrevealing a tree (nodes+edges) has been already treated before e.g.: Beamer: problematic use of \visible and \only in combination with TikZ to draw a graph Successively reveal tree bottom up Step-...
1
vote
1answer
77 views

How to replicate a probability tree with tikz?

I want to replicate the following probability tree in tikz. My problem so far was that the nodes of different third level branches joined. Furthermore, how can I add the text to the branches, such ...
1
vote
1answer
154 views

Removing a node from tikz tree

Considering the following TeX document: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{trees} \tikzset{ invisible/.style={opacity=0}, visible on/.style={alt=#1{}{invisible}}, alt/....
1
vote
1answer
71 views

tikz curves with labeled nodes as start and end points

These days I'm typesetting a lot of trees (in the graph-theoretic sense) using pst-jtree, which is essentially a collection of macros over pstricks. So, I might have the following. \jtree \! = {A}!...
7
votes
1answer
373 views

Third Level Organizational Chart using Latex Tikz

I tried to follow TikZ-tree: edge-alignment in horizontal org-chart to make an org chart-like diagram like this I got stuck on making third-level down. Can you help in figuring this out? I am not ...
2
votes
1answer
148 views

Line break in qtree edge labels

I am using tikz-qtree to create a (horizontal) game tree. While I have managed to create line breaks in the node labels, this does not seem to work for the edge labels, see MWE below. My questions ...
3
votes
1answer
107 views

positioning a tree

I have drawn a simple tree. But this code creates a left-aligned tree. How can I position the whole tree in the center? \documentclass[12pt]{article} \usepackage{gb4e} \usepackage{amsmath} \...
3
votes
1answer
71 views

Straightening the edges in tikz-qtree

I have a tree, which turns out to be a ternary tree. Here is the code \begin{tikzpicture} \tikzset{level distance=18pt,edge from parent/.style={draw, edge from parent path={(\tikzparentnode) -- (\...
3
votes
2answers
93 views

How to adjust the size of edges when we have large number of items in tikz-tree?

I am working on a hierarchy diagram which has large number of items on its leaves due to which my diagram goes out of page and eventually i am unable to see right half of tree following is the code I ...
2
votes
1answer
212 views

How to nicely place two heaps next to each other

I am quite new to latex and I have a question on how to place two heaps of this size nicely next to each other in latex. For example: \[\begin{tikzpicture}[every node/.style={circle,draw},level 1/....
1
vote
0answers
360 views

please how can i create this organization chart using latex? [closed]

please help me to create this organization chart using latex an tikz
1
vote
1answer
106 views

Compiling in latex-suite halted with lualatex error with pattern not found

So I'm getting this error after compiling a .tex file with an import \usetikzlibrary{graphdrawing.force} and compiling hitting ,ll in vim's latex-suite. Pattern not found: \Vn LuaTeX to use the ...
4
votes
3answers
432 views

Figure in Tikz (2 state Markov)

I would like to make the following figure in Tikz: I have tried using the code here, but I did not succeed unfortunately. Can anyone provide me some code to make such a picture? Thanks in advance....
7
votes
2answers
499 views

How do I format text inside a node?

I'm making an academic family tree and I'd like to put a couple of bullet points of info for each person. I'm just starting with LaTeX, so this is the simplest code possible: \documentclass[border=...
4
votes
1answer
57 views

Trees with tangent curved arrows

The arrow controlled by \draw[semithick, dashed, ->] (pe)..controls +(south west: 50) and +(south: 50) .. (re); dissects the tree. I want it to curve round the bottom-most node of the tree. I ...
4
votes
2answers
253 views

Colouring the branches of tikz trees

I want to colour the branches of the following tree: \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \tikzset{every tree node/.style={align=center,...
4
votes
1answer
146 views

Tikz vertical levels instead of horizontal

The following code : \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{external,arrows,shapes,positioning,shadows,trees} \tikzset{ basic/.style = {draw, drop shadow, ...
3
votes
2answers
262 views

Tikz tree diagram with 4 levels

This is the first time I use TikZ so please bear with me. With the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes,positioning,shadows,trees} \tikzset{ ...
3
votes
1answer
99 views

How to perform correct manipulation of child?

MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{tikz} \usetikzlibrary{mindmap} \pagestyle{empty} \begin{document} \begin{figure}[H] \centering \begin{tikzpicture}[mindmap, grow cyclic, every ...
3
votes
1answer
132 views

Tree diagram with boxes and arrows

Good day everyone here at TeX.SX. I have been troubled with the following task; I need to create some sort of tree diagram that resembles the accompanied image. I am providing a MWE. \documentclass[...
4
votes
1answer
168 views

Drawing a graph with labeled edges in foreach loop

How to add different label for each edge in example on the picture. How can I do this in foreach loop? \begin{tikzpicture} [scale=.8,auto=left,every node/.style={circle,fill=blue!20}] \node (n6) ...
5
votes
1answer
129 views

Is it possible to draw a tree using standard syntax without overlapping, if graphdrawing is loaded?

It seems that merely loading the graphdrawing library can mess up drawing a tree using the standard TikZ syntax. Is there a way to avoid this unwanted effect? For example: \documentclass[tikz,border=...
3
votes
1answer
190 views

TikZ: Drawing directed trees using tree layout, child{…}-syntax and lualatex

There seems to be no way to draw directed edges using the new (?) tree graph layout and the child-syntax. \documentclass{standalone} \usepackage{tikz} \usepackage{lmodern} \usetikzlibrary{arrows....
11
votes
1answer
154 views

Visual table of contents (tikz mindmap) - Problem in output

I would like to make visual table of contents, just like here. However, I have a part that does not have a section and I would like it to output, but it does not do so. I took my code from here as ...
4
votes
2answers
181 views

TiKz tree, i need to force move a node down

I'm making this tikz figure But i want to move the [ A C C T] box down on the same levvel as the other 3.. That is making the path line longer to the right and longer down. Please help. Code: \...
3
votes
1answer
169 views

Centering trees

How can I centre a tree, moving it to the middle of the page, whilst keeping \ex. in its normal position? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-...
4
votes
1answer
118 views

Putting a tree next to another tree

How can I put example tree (a) and example tree (b) next to each other on the page? At the moment, tree (b) appears below tree (a): \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \...
8
votes
2answers
536 views

How can I draw these pictures with TikZ?

I have the following images: Binary Decision Diagram (BDD): Binary Decision Tree (BDT): and I would like to draw them in LaTeX with TikZ. Furthermore, I would like to make them "consistent" ...
2
votes
2answers
97 views

Fitting an enormous tree on a page

I cannot fit this enormous collection of trees onto a page without the page number being obscured. Can anyone help me? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{...
1
vote
2answers
102 views

Trees: adjusting arrows and roofs

How can I ensure that the arrow from $t_2$ curves below "of"? How can I use \qroof{some company}.DP and yet still have the arrow pointing to it? \documentclass[12pt,a4paper]{article} \usepackage{...
8
votes
2answers
326 views

Extending a tree

I am trying to extend the following tree, so that it is as in the picture: \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \usepackage{ulem}...
5
votes
1answer
288 views

drawing complex dependency diagrams with tikz / forest

I want to draw the following Word Grammar diagram with tikz/forest: I am a great fan of forestand would like to have a style for such graphs, but I think this is non-trivial/impossible for this type ...
1
vote
1answer
57 views

Entering a level

I am trying to create a level below Ruth & Anita to create one node called 'Chris', with the rest remaining the same as it is currently. \documentclass{exam} \usepackage{tikz-qtree} \...
8
votes
1answer
177 views

Targeting proper parts of nodes in `forest`

I am using forest to construct trees. I have one (minor but persistent) issue: sometimes I would like to place a node at a point that is a proper part of (e.g.) a leaf, in particular so that I can ...
6
votes
2answers
190 views

move the green box to the top of the right grey box

The following is the graph I modified from the forest style, but I encounter an problem when I try to move the green box to the top of the right grey box, I know the main problem is the tree style, ...
1
vote
0answers
33 views

Align the forest from left to right [duplicate]

Recently, I applied cfr's code to what I wanted (see below). But I want to arrange this diagram from left to right in order to put into my book, that is, put the topmost box at the left side of page ...
3
votes
2answers
247 views

Writing info into a tree

I want to draw this tree, but I want the data on the branches to be parallel to the branch, not like the result I am getting Thank you! \documentclass[12pt,oneside,a4paper,fleqn]{report} \...
2
votes
1answer
106 views

Properly spread tikz tree nodes

In the middle of drawing blooming tree, which is declared in generic way, something is going wrong. Please, help me to separate middle nodes and put boxes with borders on every node. \begin{...
2
votes
1answer
46 views

Position of a line between two nodes

I don't understand how to use the command (origin.220) -- (origin.220|-Destination.north) in my code and therefore I'm have to guess when I'm going to put a line between two nodes. How can I determine ...
2
votes
5answers
255 views

How to make the simple three square box and connect them?

I want to make the three square box and simply connect them.
2
votes
1answer
146 views

Caption and label tikz-qtree inside figure

I want to create a figure caption for my tikz-qtree. Unfortunately it does not compile. \documentclass[fontsize=12pt,a4paper,oneside ]{scrreprt} \usepackage{pgfplots} \usepackage{tikz-...
2
votes
2answers
304 views

Draw circle near to box in tikz qtree

I'm trying to draw above a node: a circle Some text But I dont know how to do it. This is my provisional code \begin{figure} \captionof{figure}{Estructura del análisis de árbol lógico } \...
6
votes
2answers
373 views

Decision Tree with Labels on Both Sides of Line

I am trying to generate a decision tree similar to this scanned example: Notice that some branches have text on the top as well as the bottom. I have not figured out how to do this. I can get text ...