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

learn more… | top users | synonyms

2
votes
0answers
21 views

Tikz-qtree strange placement problem [duplicate]

I'm having issues with the placement of the values in my tree, i'm not quite sure whats the cause of it. Any help is appreciated. \documentclass{article} \usepackage{mathtools} \usepackage{newfloat} ...
2
votes
2answers
40 views

highlight a node in tikz

\begin{frame} {Family work up } \begin{tikzpicture}[level 1/.style={sibling distance=5cm},level 2/.style={sibling distance=2.5cm}] \node {Patient}[edge from parent fork down] child { node ...
3
votes
0answers
70 views

Make an organisation Chart on Latex

I am looking to make an organisation chart on latex for a group project. I have never done this before, and I saw that I can use the Forest package or using tikz. My coworker, made the chart using ...
0
votes
0answers
17 views

How to get overlay options in mindmaps? [duplicate]

I am using the following codes to construct my mind map. \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} \usepackage{verbatim} \begin{document} \begin{tikzpicture} ...
-1
votes
2answers
79 views

How can I reproduce this tree diagram?

I want to reproduce the tree diagram shown below. My major problem is how to put text (Yes/No/Exposure...) next to the lines.
2
votes
2answers
27 views

How to write on connecting lines in Tikz?

So I am trying to do a similar diagram: I have done this so far: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Circles \draw[fill=white] (0,0) ...
3
votes
2answers
78 views

How to draw a proper decision tree

I need to draw a decision tree for my LaTeX document (with TikZ/forest or any other package). I searched around for a while to find something similar, but found none. The decision tree produced should ...
3
votes
1answer
40 views

TIKZ Tree: Change angle between Nodes

I am struggling to find out how to change the angle between nodes in tikz trees. I have already tried the attribute sibling angle=... specifically for child nodes or as level 1/.style=... attribute at ...
1
vote
1answer
22 views

One-period multinomial model

I am trying to draw a One-period multinomial model that looks like this: But I am having trouble using the tikzpicture package to achieve this, any suggestions is greatly appreciated.
3
votes
3answers
105 views

Multilevel hierachical tree/taxonomy with linebreaks and “empty items” in Tikz

I would like to include graphics like the following in my document. Since this is just one example and there will be different models, I can't just include it, but will rather need to be able to build ...
7
votes
2answers
74 views

How to horizontally align child nodes with the graphdrawing library of TikZ 3.0?

I want to left align the "2222" node with the other nodes on the same level (see MWE below). Is this possible using the graphdrawing library of TikZ 3.0? I could not work it out so far. ...
1
vote
1answer
45 views

Some questions regarding tikz tree

I have a tree working written in tikz, however, it's not fully what I wanted it to look like \begin{tikzpicture}[level/.style={sibling distance=60mm/#1}] \node [circle,draw] (equal){$=$} child ...
2
votes
1answer
62 views

Rich phylogenetic trees accompanied with a non-linear timeline

I wish to draw a phylogenetic tree which is graphically rich (the edges may have several colours/styles), and more importantly, the tree would be aligned with a timeline, which need not be linear. ...
6
votes
2answers
109 views

How to unite several nodes in one big node using Tikz?

I have to implement the Gomory-Hu-Algorithms which requires the reunion of several nodes to one node like it is shown here: My code is quite simple since the example I want to implement is quite ...
8
votes
4answers
191 views

Allignment of Tikz tree levels

I want to reproduce the following figure. And got the following figure with the code given below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows, shapes, trees, positioning} ...
3
votes
2answers
127 views

Butcher Trees in TikZ

I am trying to construct a function in Tex called \rootedtree, which takes in a a tree written in the notation of J. Butcher and then prints out the corresponding tree in TikZ. For instance consider ...
3
votes
1answer
54 views

Strange issue with linking nodes in a tree

I have the following tree: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{tikz} ...
6
votes
2answers
110 views

changing your latex code to modify the existing block diagram

My figure now looks like figure 1 using below code whenever I try to add more blocks ,the blocks become overlapping . % https://www.packtpub.com/hardware-and-creative/latex-cookbook ...
1
vote
0answers
42 views

Tikz: Alligning paths in its entirety

How can I align paths? I have two mindmaps: \documentclass[tikz,border=5]{standalone} \usetikzlibrary{trees,mindmap,chains} \tikzset{grow cyclic list/.code={% \def\tikzgrowthpositions{{#1}}% ...
3
votes
1answer
64 views

Tikz: Fill concepts in mindmaps nicely

When using this code: \documentclass[tikz,border=5]{standalone} \usetikzlibrary{trees,mindmap} \tikzset{grow cyclic list/.code={% \def\tikzgrowthpositions{{#1}}% \foreach \n ...
2
votes
0answers
27 views

How to place tree node not to overlap with tikzpicture? [duplicate]

I'm trying to draw a tree diagram using tikzpicture, the issue is that when the distance between nodes are not wide enough the tree nodes are wrapping. As I use two column style, I need to find a way ...
3
votes
1answer
59 views

custom forest style: dimension too large / dividing by zero?

I've written myself a custom style for forest, to get trees looking the way I'd like them to. The idea of the style is to keep the branches at a fixed angle, and automatically handle empty nodes ...
-1
votes
1answer
101 views

how to draw this picture using tikz? [closed]

how this diagram could be draw in latex.
3
votes
1answer
30 views

Get rid of the number on some of the edges

How can I get rid of the circled marked 0 in red on the edge? Code: \documentclass[tikz]{standalone} \usepackage{forest} \tikzset{el style/.style={midway, font=\scriptsize, inner sep=+1pt, ...
-1
votes
1answer
99 views

File `elocalloc.sty' not found

I am trying to compile an example of the Huffmann which I found but I am getting the error: ! LaTeX Error: File `elocalloc.sty' not found. Type X to quit or to proceed, or enter new name. ...
5
votes
2answers
83 views

Copying non-epsilon terminal nodes in parse trees using forest

I'm drawing parse trees for formal grammar using the forest package and would like to have all terminals, that are not Epsilon, to be copied to the bottom and connected to the original node with a ...
3
votes
2answers
116 views

tikz trees: How to not draw a single edge

I want to draw a tree and not draw specific edges. I try it like this \documentclass[preview]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] ...
5
votes
3answers
92 views

Macro for creating trees for B-series as math symbols

I am writing a paper on numerical solutions for ODEs. For the representations of B-series I want to use binary tree-like symbols. I know how to produce them with TiKZ; however, just as in the given ...
3
votes
2answers
114 views

Tikzpicture horizontal tree - how to recombine daughters

I have a a horizontal tree representing a multi-period financial model. I want to have each parent converging into the same daughter as the parent's downside above them, and vice versa. I'm attached a ...
2
votes
2answers
55 views

Adding a separation line to a Tikz graphic

I have a graphics/tree which looks like the following: I created this figure using the following code: \begin{tikzpicture}[sibling distance=10em, every node/.style = {shape=circle, draw, ...
0
votes
0answers
33 views

Frame around two Latex Pictures, Heading on top

so what I want is to have two boxed with LaTex pictures (5 in the left box, two in the right) next to each other who each have a different heading. I didn't manage to even put the text on top of the ...
4
votes
2answers
77 views

Highlighting/marking areas in a tikz tree

How can I highlight some specific regions in my TikZ tree? First picture shows my tree, and the second picture shows the idea of my desired outcome (but the rounded grey rectangles should be behind ...
3
votes
1answer
55 views

Tex Add nodestyle

Is it possible to use different node styles with my "syntax" of defining the nodes (using [. ]). \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
1
vote
0answers
87 views

Highlighting specific parts of a customize graph

I want to highlight specific parts, like this, for my graph (see code below). But in my case the highlighting (from the link above) doesn't work. The specific customized graph elements come from here. ...
1
vote
0answers
33 views

encorporating tikz tree in a figure environment messes up “landscape” option

I have a large tikz tree that I can only display properly if I turn around my page to landscape. Doing so is not a problem: The \begin{landscape} and \end{landscape} commands do that fine. However, I ...
1
vote
1answer
117 views

Package for drawing cause effect graphs (-> software test technique)

Is there a package or a package extension for drawing cause effect graphs (see the screenshot below for atomic elements). If there is no package can someone explain how I can achieve this by using ...
4
votes
3answers
70 views

Alignment in directory tree

I want to draw a directory tree, see the code below. I can't get the alignment right in the following areas: The H of Here is text and the T of This is some more text must align. All horizontal ...
0
votes
1answer
57 views

How can I make a tree (forest) with simple commands like Geophar?

I use Geophar http://sourceforge.net/projects/geophar/ With this Program, I can easy to make a tree. With the code ||Tirage 1|Tirage 2|Tirage 3 omega >A:0,7 >>B:0,2 >>C:0,8 ...
1
vote
0answers
20 views

Binomial pricing trees using tikz [duplicate]

How do you make binomial pricing trees using tikz? I mean a tree like the this, but with only three time periods.
1
vote
1answer
91 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 ...
4
votes
1answer
186 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
46 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 ...
3
votes
1answer
69 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
33 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
286 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
212 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
78 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 ...
1
vote
1answer
55 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
71 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}}, ...
1
vote
1answer
48 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 \! = ...