Skip to content

Commit

Permalink
images: change direction to top-to-bottom (TB)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Apr 21, 2024
1 parent c0d0609 commit 1b65f2a
Show file tree
Hide file tree
Showing 4 changed files with 530 additions and 530 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ representation](https://graphviz.org/doc/info/lang.html) for the Makefile
targets and their dependencies from our example Makefile.

``` shell
makefile-graph --makefile examples/Makefile --direction LR
makefile-graph --makefile examples/Makefile --direction TB
```

In order to render the graph you can pipe it directly to the
[dot command](https://graphviz.org/doc/info/command.html), e.g.

``` makefile
makefile-graph --makefile examples/Makefile --direction LR | dot -Tsvg -o graph.svg
makefile-graph --makefile examples/Makefile --direction TB | dot -Tsvg -o graph.svg
```

This is what the graph looks like when we render it using `dot(1)`.
Expand All @@ -106,7 +106,7 @@ dependencies.
``` makefile
makefile-graph \
--makefile examples/Makefile \
--direction LR \
--direction TB \
--target files.o \
--highlight \
--highlight-color lightgreen
Expand All @@ -124,7 +124,7 @@ dependencies.
``` makefile
makefile-graph \
--makefile examples/Makefile \
--direction LR \
--direction TB \
--target files.o \
--related-only
```
Expand Down
Loading

0 comments on commit 1b65f2a

Please sign in to comment.