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

learn more… | top users | synonyms

3
votes
1answer
41 views

tikz Controlling the position of prongs of underbrackets in an equation

I would like to make a two (or more) pronged underbracket (or overbracket). In particular, I would like to control the: number of prongs. position of the prongs by specifying to which characters in ...
3
votes
0answers
24 views

Connecting two nodes from different forest trees [duplicate]

I want to draw the following figure without pstricks: What I have is the following code: \documentclass{minimal} \usepackage{forest} \usepackage[external]{adjustbox} ...
1
vote
0answers
82 views

SIMPLE mindmap combined tree

I want to combine a simple mind map with a tree. First I tried to get something like the following mindmap from pgf manual p. 79: Thanks to @cfr, I could get the mindmap to work. Using the source ...
1
vote
0answers
63 views

Highlight a group of nodes in a tikz graph

Is it possible to extend the approach of the question: Highlight a group of nodes in a tikz tree to a generic tikz graph? In particular I don't have a graph in form of a tree, so I can't specify the ...
3
votes
0answers
60 views

Tikz graphdrawing library with tree layout throws error

When I compile the following snippet \documentclass[tikz,border=0pt]{standalone} \usetikzlibrary{graphdrawing} \usetikzlibrary{graphs} \usetikzlibrary{shapes.misc} \usegdlibrary{trees} ...
2
votes
1answer
60 views

Produce a tree diagram to display football matchup

I am working on a Math Project involving football matches. I hope I can produce a tree diagram like this. Could anyone help me with the basic code? I feel producing this diagram requires tikz, which I ...
5
votes
1answer
93 views

pgfmathparse inside tikz child doesn't work

Consider the following MWE: \documentclass{article} \usepackage{pgf, tikz} \begin{document} \begin{tikzpicture} \node {} child foreach \i in {1,2,3} {node {$\i$}}; \end{tikzpicture} \end{document} ...
2
votes
2answers
74 views

How to elongate the branches attached to one specific node?

I'd like to make longer only two immediate branches attached to the VP node (red ones in the picture) without altering the height of the other branches above and below. Any idea? Thanks! ...
1
vote
1answer
29 views

Controlling the height of roof in tikz-qtree?

I am trying to make the roof (triangle) shorter than the near branches. Is there any way to do that? Thanks. \documentclass{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} ...
4
votes
1answer
94 views

A tree with complicated nodes as each child in tikz

Trying to make a tree where each child is a set of nodes that can be created separately and then linked somehow in to different positions in a tree. Lets say I have a group of nodes and edges such as ...
4
votes
2answers
162 views

Latex Binomial tree (space and overlapping)

I encounter the following problem: I want to fit a (vertical) binomial tree but the siblings from the third level overlap (no matter how I adjust the distances they either overlap with each other or ...
5
votes
1answer
79 views

Connecting arbitrary text in `forest`

I already asked this question with regard to tikz-qtree (Connecting text in a tikz-qtree with other text by arrow), but maybe there is a better way to do this in forest. I have the following tree: ...
4
votes
2answers
66 views

Forcing a node or a tier to be set below a certain other node in forest

Working from Typesetting Dependency Grammar trees with discontinuous constituents I try to set a graph with two discontinuities. The first figure does what I want. It has nacc and the other N aligned ...
3
votes
2answers
151 views

How to Create Directed Graphs in LaTeX

How can one create a tree structure in LaTeX that begins with a single number and extends with an arbitrary number of arrows that connect numbers below with numbers above such that the head faces ...
3
votes
2answers
55 views

Getting non-sense edges in my tree, or, how to get labels on edges

I have the following code. If I remove the edge commands, everything is fine. I suppose the problem is that my nodes have the same contents, but I can't avoid this obviously. Bad code: ...
1
vote
2answers
39 views

A gametree with variable choices

Hello everybody i am making a simple game tree using tikz, i am almost done but i need som finishing tuches to make it just right. This is the code so far \hspace{.1in} \tikzstyle{level 1}=[level ...
13
votes
4answers
385 views

How to plot a graph from its adjacency matrix and coordinates of vertices?

A similar question is here. If we give all the data of the vertices's coordinates and the graph's adjacency matrix, how to plot it with tikz, pstrick or other tool in tex? here are the data of ...
3
votes
3answers
227 views

My version of Red-Black Tree

Here's the code I have \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ treenode/.style = {align=center, inner sep=0pt, text centered, font=\sffamily}, ...
4
votes
2answers
61 views

Add big bracket below/over tikz node

How can I prolong the big bracket to not only cover yyyy but also the uuuu node? \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3.5cm] \tikzstyle{level 2}=[level distance=3.5cm, sibling ...
3
votes
3answers
120 views

How to cross out a child of a node in a tikz tree?

Consider this simple tikz tree: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees,shapes,snakes} \begin{document} \tikzstyle{mynode} = [text width=4em, text centered] ...
4
votes
1answer
42 views

arrows crossing over nodes in tikz

I have drawn a tree by tikz package, but the arrows are crossing over nodes. is there any switch to prevent this? \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{graphdrawing} ...
4
votes
2answers
141 views

Drawing linked trees

I got great help earlier defining a tree using forest (thanks again to cfr!). I would like to be able to break down a tree into subtrees and draw links between them... either in the same forest or ...
3
votes
1answer
65 views

Labels above tikz tree forks

I have an upward-growing tree showing the flow of a proof, as follows: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \resizebox{\textwidth}{!}{% ...
4
votes
3answers
123 views

Use \hfill inside tikz node

I would like to use an \hfill in a Tikz node, in order to have some text on the left and right of some node. Look at the following MWE \def\left{L\hfill} \def\right{\hfill R} \begin{tikzpicture} ...
3
votes
2answers
92 views

Problems with \newgeometry by using landscape and minipage

I try to rotate a tikz-tree and a table which are in a minipage environment by using \landscape because the tree besides the table is to wide. Now, the tree and the table are not centered. The last ...
2
votes
1answer
95 views

Trying to create a simple binomial tree in beamer

Following the example in Unknown error using tikz matrix of nodes in beamer I removed the errors I got but the tree is still not produced correctly. I am trying to reproduce in beamer what I saw in ...
9
votes
1answer
221 views

Is it possible to cut a tikzpicture in half if the picture is too long and display it on two pages?

I'm using tikz (tikzpicture to be precise) to make some "drawings" (trees). The problem is that my "drawing" is too long to fit on one single page (it's too long). I was wondering what was the best ...
3
votes
1answer
380 views

Drawing Graph of Markov Chain with “Patches” using Tikz

First time using Tikz. Haven't found any documentation on drawing graphs like these, so I have been reading other examples and trying to modify their code to fit my example. I am trying to reproduce ...
7
votes
2answers
295 views

Trees with only leaves in TikZ

Following Roel's answer to How to write a tree with no (visible) root with TikZ? I attempted to visualise my Huffman-Code for "Tennessee", but it didn't turn out as I expected: My MWE: ...
2
votes
1answer
51 views

Tikz picture larger then page

I have a graph, containing a few nodes, but because of the size of it dose it extend beond the page. How can i set it to automatic scale so it will fit the page? Also what can i do to center it on the ...
8
votes
1answer
106 views

TikZ Tree Rectangle around nodes

below you can see my code of a tree besides a table. Now I would like to insert some rectangles and ellipses around the nodes. Can someone show me how I can do this. I tried it but it did not work. ...
2
votes
1answer
47 views

Trees with no node labels

I am trying to draw a simple figure that looks like the following, but have been unable to get it. If I get the nodes not to have any spacing, the edge lengths come out wrong, if I get them right, ...
3
votes
1answer
63 views

Alter location of edge in graph in tikz

So I have the following: \begin{tikzpicture}[shorten >=1pt,node distance=1.75cm,thick] \node (A) {$A$}; \node (B) [below left of=A] {$B$}; \node (C) [below right of=A] ...
4
votes
2answers
123 views

representing a null child in a binary tree using `ground` symbol

I'm using ground symbol to represent a null child in a binary tree. But the ground symbol has arrows in it. How do I remove them? \documentclass{llncs} \usepackage{llncsdoc} \usepackage{tikz} ...
2
votes
1answer
119 views

TikZ tree beside table

I would like to place a TikZ tree beside a table. The document type is apa. So the tree has four branches and therefore I want to place a 4 x 6 table to the left of the tree. The height of the ...
5
votes
3answers
590 views

Draw a binary tree using tikz

I'm trying to draw a binary tree using tikz package. If I use only circle, I get a tree. But I want to represent a subtree using a triangle. Now the tree gets uneven. I want to attach the arrows to ...
5
votes
2answers
152 views

Dotted line between nodes in two graphs

I need to create some match graphs for my masters thesis report, something like the following: I have found something called PG 3.0 that can make the graphs, but i do not know how to make the dotted ...
5
votes
1answer
171 views

TikZ: Re-arranging the hierarchical diagram

I was quite impressed by the solution given by "cfr" for the question posted here. Can you suggest a method to change the two main children (labelled Projection matrix Theory and Reconstruction ...
5
votes
2answers
244 views

Produce nice TIKZ picture (Tree)

so far i have the following code which gives me a ugly TIKZ picture (twe level tree). Is there a comfortable way to get a nice spacing for second level nodes? Thank you very much in advance! ...
3
votes
1answer
140 views

Close a cycle in a TikZ graph with a loop

Consider the following simple flow diagram. I like using the graph drawing library in TikZ for its simplicity and semantics: \documentclass{standalone} \usepackage{tikz} ...
2
votes
1answer
98 views

TikZ: Skinny ellipse around two horizontally and vertically offset nodes in a tree

As a follow up question to draw an ellipse into a Tree picture -tikz package, how would one go about making a skinnier ellipse that encircles two horizontally and vertically offset nodes in a tree? ...
2
votes
1answer
54 views

Sporadic node overlapping in a Forest

There is a node whose children overlap with the neighbor node's children's edges in the MWE below (the children of nodes 10070070 and 10071027 with ZZZZ and YYYY for text). The node Y seems to be ...
4
votes
3answers
229 views

TikZ: circle split vertical

I want to split a TikZ node into a left and a right part, just like circle split does in upper and lower part, e.g. \node [circle split,draw] (x){$a$ \nodepart{lower} $b$} Is there a vertical ...
2
votes
1answer
56 views

Forest package: Left-align all nodes on every level

The tree below looks exactly the way it should. But is a more elegant way to left align all nodes on every level without explicitly specifying tier on every node? This is error-prone and really ...
3
votes
1answer
232 views

Horizontal Probability Tree with Level Labels

I'm trying to create a Horizontal Probability Tree with Level Labels using tikz. (Not tikz-qtree). Right now, I have a horizontal tree. The labels are NOT aligned to the top of the diagram. I would ...
1
vote
0answers
38 views

How may I add signatures to the lines of a tikz-tree? [closed]

Follow-up to drawing tree using tikz, child overlap Good evening, could you help me please with a tree a little bit? I saw your answer in one of the topics here (it's pointed in the topic of a ...
5
votes
1answer
219 views

TikZ nodepart children

I know how to create a multipart node in TikZ using \nodepart, and I know how I can draw lines from these nodeparts to hook them up to other nodes: \documentclass{standalone} \usepackage{tikz} ...
0
votes
1answer
36 views

Trees with nodes consisting of multiple lines [duplicate]

I want to draw a tree but I want the nodes to be able to have multiple lines and specific width. I have searched about trees but all of them consist of a single line in each node. From what I have ...
1
vote
1answer
139 views

fit tikzpicture to page width or height (using macros)

I have a new environment defined that fits tikzpicture to the page width, but when tikzpicture is long in height the bottom part of the tikzpicture is cut and extra blank page appears because of the ...
6
votes
1answer
120 views

Is it possible to change the edges for some tree level using forest package?

Is it possible to change this MWE which is using forest package to produce a tree, similar to that produced by the next MWE that is not using forest? The very last level of child nodes would have to ...