Skip to content

Commit

Permalink
Change engine visual graph layout from LR to TB (pantsbuild#4245)
Browse files Browse the repository at this point in the history
### Problem

The current layout for engine visualization is from left to right, which is hard to follow.

### Solution

Change the layout to be "from top to bottom" (TB).
  • Loading branch information
JieGhost authored Feb 10, 2017
1 parent 3ed321a commit b6a936b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/engine/src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl InnerGraph {
try!(f.write_all(b"digraph plans {\n"));
try!(f.write_fmt(format_args!(" node[colorscheme={}];\n", viz_color_scheme)));
try!(f.write_all(b" concentrate=true;\n"));
try!(f.write_all(b" rankdir=LR;\n"));
try!(f.write_all(b" rankdir=TB;\n"));

let root_entries = roots.iter().filter_map(|n| self.entry(n)).map(|e| e.id).collect();
let predicate = |_| true;
Expand Down

0 comments on commit b6a936b

Please sign in to comment.