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

learn more… | top users | synonyms

9
votes
1answer
184 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 ...
7
votes
2answers
221 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
49 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
1answer
64 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
42 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 ...
3
votes
1answer
53 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] ...
2
votes
1answer
29 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, ...
4
votes
2answers
74 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
92 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 ...
3
votes
1answer
79 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} ...
3
votes
0answers
123 views

Draw Tree using tikz [duplicate]

Possible Duplicate: Drawing a tree where many nodes have the same child in TikZ I'm trying the draw a tree using the tikz package, \begin{center} \begin{tikzpicture} ...
4
votes
3answers
126 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
1answer
123 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 ...
1
vote
0answers
85 views

Tikz code not working in LyX but working in pure Tex

I'm trying to add a tikz picture in my LyX document. To do this, I organize the tikz tex code in Texmaker (a friend sent me a tikz code model in a .tex file) and then I copy it to a ERT in LyX (making ...
5
votes
2answers
81 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
2answers
164 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! ...
4
votes
3answers
166 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
74 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? ...
1
vote
1answer
85 views

How to Create an un-ordered tree in LaTeX?

Is there a way to create a tree in LaTeX without using any "ordering" ? So far, all the examples I came across are structured in this way child{ node [arn_n] {20} child{ ...
2
votes
1answer
32 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 ...
2
votes
1answer
32 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
91 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 ...
5
votes
1answer
135 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} ...
1
vote
0answers
31 views

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

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 ...
0
votes
1answer
33 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
95 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
97 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 ...
5
votes
3answers
141 views

Prevent TikZ tree text overlapping with later lines

I'm trying to create a family tree with TikZ growing right. I have the tree working, but the text at each node is too long, it overlaps with later lines (e.g. My Family Tree, Paternal GMother and ...
4
votes
1answer
126 views

Creating Trie trees in TikZ

I'm writing a Java app to generate tries for Latex using TikZ. I'm struggling to typeset a Trie to follow example below: Could someone provide me with an example how to properly nest children ...
1
vote
1answer
58 views

Fault Tree: reducing gap between levels

I am facing problem moving the level of the tree UP. I wanna move the row with yellow boxes and OR gate up, to conserve some space. i tried adding "level distance" in level 3/.style, but that didn't ...
7
votes
1answer
166 views

tikz complex mindmap of all disciplines and subdisciplines of knowledge

just started using LaTex yesterday and I am stuck on my very ambitious diagram of all disciplines of knowledge. Problems (some simple, some probably more complicated): change the page size to even ...
1
vote
1answer
47 views

Specifying level 2 style for a tree in Tikz

The idea is to produce the org charts automatically by application code reading a database and calculating the node counts and sizes based on the names of teammates and their hierarchy. After reading ...
4
votes
1answer
335 views

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 ...
8
votes
3answers
375 views

Mendelian Inheritence Chart

I would like to be able to create a simple chart that depicts Mendelian Inheritence, like this one: I'm not too picky about how it looks, as long as it depicts it accurately. Thanks!
0
votes
0answers
100 views

How do i create this graph on latex?

So…i made this graph using paint(!)…and it looks horrible. I have used tikz to create similar graphs but this one seems to be more difficult.
8
votes
3answers
165 views

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 ...
19
votes
3answers
4k views

Drawing a directory listing a la the tree command in TikZ

Good day everyone - Is there a fast and efficient way to draw directory tree structures (aka depth-indented listings) like the unix's tree command, that is, is there a way to draw the following using ...
22
votes
2answers
550 views

Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
4
votes
1answer
118 views

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} ...
1
vote
0answers
45 views

Q: tikz tree using mindmap library

Is there an easy possibility to achieve a simple tikz tree using it's own mindmap library?
5
votes
2answers
117 views

Tikz, nodes in a tree become not fitted.

I want to draw 4 trees and I want to have some nodes in each of them fitted like in the first picture. But what is coming out is in the second picture. What is wrong with the code? Thanks in advance!! ...
6
votes
3answers
280 views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
3
votes
2answers
123 views

How to draw the following diagram in Tikz?

i am getting problem drawing this type of tree using tikz and how to write two line labels for a node in tikz
6
votes
3answers
280 views

Drawing vertical hierarchical n-ary tree in tikz

I am trying to draw a simple vertical tree to represent a hierarchical partition of a graph in communities. I have written some code to draw it in tikz, but I am not very satisfied of the result. My ...
7
votes
2answers
226 views

How do I draw merged red black tree into 2,3,4 tree in tikz?

I'm using tikz in study material and I want to show analogy between RB trees and B-trees (2,3,4 tree). I want my output looks something like this example from Wikipedia. For RB tree I'm using almost ...
1
vote
1answer
883 views

How do I draw a B+ tree with tikz in latex with more than 4 Key value pair in a node

I'm using child {node {1 \nodepart{two} 2 \nodepart{three} 3 \nodepart{four} 4 \nodepart{five} 5 \nodepart{six} 7}} to create a node in btree. However it seems that \nodepart{five} and ...
11
votes
1answer
402 views

Organigram in Latex. Vertical distance between nodes

I want to draw a organizational structure in form of an organigram. I found this solution and tried to adapt it. The code: \documentclass{article} \usepackage{tikz} ...
6
votes
1answer
267 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
5
votes
1answer
147 views

Still some of the flows missing in the flowchart

I have posted this question few days back but still I can't complete the algortihm. This is the uncompleted work done so far \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
117 views

flow chart page size issue

I have been doing this since from last month. I want to draw this flow chart using \documentclass[a4paper,11pt]{report} but if I use above configuration (which I want to use) the flow chart does ...