Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [tikz-trees]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
91 views

Asking tikz code for this diagram

Can someone provide me the tikz code for the following diagram? Any help would be appreciated. Thanks so much
8
votes
2answers
238 views

TikZ, forest and star macro

I would like to define a star version of a macro to be used for the value of edge label. The second code does the wanted the job but its starred translation fails to work. Is there a subtil ...
1
vote
2answers
72 views

Binomial trees using forest package

I need to draw a 3-period tree with different elements at each stage, for example: the upper path: (12)(12) ---> () the lower path: (13)(12) ---> (123) how can I draw such a tree? Edit: ...
0
votes
2answers
55 views

How do I remove gaps between line segments of tikz's draw?

I have read the related question: Tikz Understand white space between node and draw, and tried the solutions proposed therein. I am trying to draw a phylogenetic tree. I define the leaves and ...
2
votes
1answer
39 views

Overlapping nodes in tree drawing

Question: I am stuck in drawing of tree. Actual problem is i wish to draw two more nodes(having names H and I) exactly below to node F. but i couldn't problem is of overlapping of nodes. MWE: \...
1
vote
1answer
41 views

Add one more node in tree

Question: I have one MWE of tree in which i want to add one more node under G having lable I. How to do this? \documentclass[10pt]{article} \usepackage{pgf,tikz,pgfplots} \pgfplotsset{compat=1.15} \...
3
votes
2answers
40 views

TikZ (trees): How can I align children nodes in a tree on the same level

I try to align the children in a tree in a way, that all children are vertically aligned. That's the code I have so far. You can see my problem below the node "I'm a very very very long text". The ...
1
vote
1answer
20 views

Tikz-qtree: how to put a square on a tree?

does anybody know how to put a square on a tree? I want to put a square surrounding [.DP [.D' [.D\$\emptyset$ ] [.NP [.N' [.N\Jill ] ] ] ] ] this part, but couldn't find a way to do so with tikz-qtree....
2
votes
1answer
23 views

Using tikz q-tree with an embedded macro

I am trying to create a macro which will create a tree which represents a given phrase. I've seen the explanations for \expandafter and have used it here, but when I embed this macro "\phrase" command ...
2
votes
2answers
86 views

Add only arrow to some edges of the tree

I want to draw a picture like following: \begin{tikzpicture} [ level 1/.style={sibling distance=30mm}, level 2/.style={sibling distance=15mm}, level 3/.style={sibling distance=7mm}, triangle/.style =...
5
votes
1answer
62 views

Edge style for certain types of nodes in TikZ-Tree

I have the following TikZ tree: \begin{tikzpicture}[grow=south, level 1/.style={sibling distance=50pt}, level 3/.style={sibling distance=25pt}, level distance=30pt, every node/.style={draw, circle, ...
0
votes
0answers
26 views

How to draw a two-way branching Hasse diagram with Tikz?

I wanted to draw Hasse diagrams with Tikz. I've managed to draw a upside down tree, but I want to add two branchings under the root node. How could I do that? \begin{tikzpicture}[grow'=up] \Tree [....
0
votes
1answer
31 views

Children misalignment in forest

Problem I am trying to draw a tree diagram with forest package. I have multiline children including the \texttt command and a one-line child with normal text. This results in a misalignment among the ...
3
votes
1answer
74 views

How to add extra edges in tree?

I want to draw a tree with some edges. See my code given below. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{document} \begin{tikzpicture}[level distance=1.5cm, ...
1
vote
1answer
30 views

Reflow TikZ Forest from West-East to North-South

I have the following TikZ forest: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning,automata,fit} \usepackage{forest} \tikzset{ >=stealth, auto, thick, ...
2
votes
2answers
46 views

Tikz: Game trees & pay offs with three or more players

I am having trouble on producing a game tree (and especially the pay offs) with tkiz and three (or more) players. For two player games, I use: child{node[solidnode,label=below:{$\displaystyle\binom{...
1
vote
1answer
45 views

How to start Decision Tree with a split?

I am trying to draw a simple decision tree like in Figure 1 of https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/j.1365-2656.2008.01390.x Unfortunately whatever I try, I cant adjust the ...
2
votes
1answer
63 views

Architecture Neural Network with weights

I would like to draw an image like this: Except that I want the nodes to be regular black circles instead of the colours. Also I have only one output instead of two as in the picture. In another ...
1
vote
1answer
55 views

Help with Tikz Circles

I'm using TikZ to draw a Branch-and-Bound tree, and I need some help. Here's my code: \documentclass[ 12pt, oneside, a4paper, english, ...
5
votes
5answers
476 views

Nth Problem with TikZ and Extensive Form Games

I'd like to typset the tree on the left of the image. Unfortunately, TikZ seems way to complicated to me... I tried with this code, without success \documentclass{beamer} \usepackage{tikz} % Game ...
0
votes
0answers
26 views

Problem with Tikz for Extensive Form Games [on hold]

I can't find the typo here and I'm getting blind so I'm begging for help. I just want the payoff to be represented below and the action B on the right. \documentclass{beamer} \usepackage{tikz} % Game ...
7
votes
1answer
265 views

Illustrating the random forest algorithm in TikZ

I'm trying to illustrate the workings of a random forest in TikZ by combining these two figures. The TikZ picture should have the different tree structures present in the second image while also ...
5
votes
2answers
135 views

How do you reproduce this composed image with tikz?

I am not able to reproduce the following image with tikz: I am able to draw each single tree, but I have no idea how to combine them to get the image shown above. How do you arrange them? How do ...
3
votes
1answer
56 views

Tree with some additions in Tikz

Update: What I have done is this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level distance=1.5cm, level 1/.style={sibling distance=3cm},...
1
vote
1answer
80 views

Drawing diagram with tikz

can someone please help me get the same diagram as the picture. This is my first tentative using tikz. So, sorry if there were some obvious mistakes. I tried but the output does not come out the way I ...
3
votes
2answers
81 views

How to create list at leaf node of the forest package?

Suppose I want to add the list like structure instead of branches at the leaf node. How to do that for 'e', 'f', and 'g' and for 'h' and 'i' and for 'p' and 'q'? I want output like in the given image. ...
0
votes
0answers
37 views

How to draw diagram in tikz of following image

I want to draw following image in latex tikz tree in my thesis
1
vote
0answers
66 views

No ordinary family tree. Howto insert Son/Daughter in Law?

With the tree above in mind, i am trying to get something like this: So far little luck, this is where i am now: I also tried forest, but still can't get the job done. \documentclass{article} \...
0
votes
0answers
46 views

Create the same figure

Can someone please help me with this figure I tried to create the same but I just make things worse...I even had issue with my programm... I am new to LaTeX figure drawing Thank you so much \...
2
votes
0answers
50 views

Tikz Mindmap Level 2 Alignment

How can I align Level 2 node (lines) in my mind map. \documentclass[border=10pt]{standalone} \usepackage[condensed,math]{iwona} \usepackage[T1]{fontenc} \usepackage[dvipsnames,svgnames]{xcolor} \...
2
votes
2answers
124 views

Distance between horizontal tree levels

My problem is that the following tree produced with tikzpicture squeezes my nodes way too close together, as you can see in the picture below. I have been trying to use level distance to move the them ...
2
votes
3answers
195 views

How to draw a diagram like this with tikz?

I know this is a shit question, but I don't know what to do because I don't have much time left. I need a diagram like this for my thesis: I already tried making this with tikz. First I tried it ...
5
votes
2answers
109 views

Follow-up: Drawing Game Tree with Curved Informational Sets and Several Nodes, using Tikz and Forest

This is a follow-up from Drawing game tree - Tikz or Forest? The sequential game tree I am trying to draw is this one: I am using tikz and forest to draw it, but I am still far from it. In ...
5
votes
2answers
386 views

Drawing game tree - Tikz or Forest?

I am trying to draw the following tree: Below is the code I have so far, and I don't know how to do it accurately. Also, I am using "forest." Would it be better to use Tikz? \documentclass{article} ...
0
votes
1answer
51 views

Centering Tikz tree

How do I center Tikz trees on the page, like the one used in the answer to this question: Horizontal Probability Tree with Level Labels Having modified that code to the below code, my tree is off-...
2
votes
1answer
41 views

Bar plot in terminal node of tikz-qtree

I want to draw a bar plot at the terminal nodes of a tree drawn with tikz-qtree. I have tried this: \documentclass{article} \usepackage{tikz-qtree} \usepackage{pgfplots} \begin{document} \begin{...
1
vote
2answers
63 views

How to adjust siblings spacing in TikZ graph?

I have drawn the following right expanding tree graph in beamer, but its branches overlap each other. I have tried the sibling distance option but don't get the required results. Does anyone have an ...
3
votes
1answer
38 views

Animation is not working in tree diagram

I'm trying to add an animation to the following tree diagram: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes,positioning,shadows,trees} \tikzset{ every node/.style={draw,...
1
vote
1answer
64 views

how to combine features of tikz-picture with tikz-cd

I drew a diagram in tikz-cd using the following \begin{tikzcd} & A \arrow[r] & B\arrow[loop above] & C\arrow[l]\\ D\arrow[r] & E\arrow[loop above] & & F\arrow[ul]\\ ...
2
votes
1answer
62 views

How to draw a fitting circle around nodes in tikz-qtree?

I'm trying to draw a circle around the final node: Here is what I've tried: \usepackage{qtree} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \usepackage{xytree} \...
1
vote
1answer
79 views

Tableau proof with boxes

How do I draw a tableau proof like the one in the following picture? I would like to have the boxes with their table-like structure: The numbers on the left side The formulas in the center The other ...
4
votes
2answers
108 views

Branch & Bound Geometric Shapes

I am dividing a box to two halves, and plotting it in Tikz. An example code is: \begin{figure}[!h] \scalebox{1.5}{ \begin{tikzpicture} \filldraw[fill=gray!40!white, draw=black] (0,0) rectangle (4,2); ...
1
vote
2answers
84 views

Tikz - Decision tree

I'm a complete newbie to Tikz and I want to create a decision tree similar to the image below (which I did in Paint). Does anybody know how I can do this in Latex? My attempt still is far away from ...
1
vote
1answer
49 views

Lines connected the cells in organisation chart hard to be adjusted

I am working with preparation of proposal and currently deal with some issue in organisation chart in Latex. \usepackage[margin=3cm]{geometry} \usepackage[paper=portrait,pagesize]{typearea} \...
3
votes
1answer
83 views

Figure won't accept linewidth as argument

\documentclass[11pt,a4paper,bibtotoc,idxtotoc,headsepline,footsepline,footexclude,BCOR12mm,DIV13]{scrbook} \usepackage{subfigure} \usepackage{pgfplots} \usepackage{tikz-qtree} \usepackage{subcaption}...
0
votes
1answer
44 views

How to draw hierarchical overlapping models

I am trying to draw hierarchical models with overlapping nodes. I am able to use Use tikz to draw a hierarchical model (mult-level model from statistics) to make hierarchical models, but I am not able ...
3
votes
1answer
40 views

Depth first step by step construction on forest tree

Currently using forest to display Tableaux trees on beamer. For some cases i want a depth first step by step animation for the construction of the tree. The idea is to start with the root visible, ...
0
votes
0answers
56 views

How can I make the diagram similar to the attached in LaTeX? [duplicate]

I want to make a detailed timeline of life events in a similar fashion of the attached photo, can someone share code?
1
vote
2answers
81 views

tikzcd : how to extended triangle with more arrows?

I have the following code which produces the attached triangle picture. Does anyone know how to produce a directed edge from S_0, down and to the right, ending at D_0b? Also, join vertexes S_1 and ...
6
votes
2answers
152 views

TIKZ - changing one block into parallel multiple blocks

I have the following code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usepackage{textcomp} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, ...