# Dot - a second spline layout choice for (almost) free!

**URL:** <https://forum.graphviz.org/t/dot-a-second-spline-layout-choice-for-almost-free/2292>\
**Category:** Show and Tell\
**Created:** [June 22, 2024, 9:00pm UTC](https://forum.graphviz.org/t/dot-a-second-spline-layout-choice-for-almost-free/2292 "2024-06-22T21:00:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [June 22, 2024, 9:00pm UTC](https://forum.graphviz.org/t/dot-a-second-spline-layout-choice-for-almost-free/2292/1 "2024-06-22T21:00:14Z")

</div>

Here is a way to get a second **dot** spline layout with no downloads or special software. For example -  
The standard layout:  
 ![unix3red.dot](https://global.discourse-cdn.com/graphviz/original/2X/8/8823bf089b2e324451557984ca32e477a81d769b.png)  
The alternate layout:  
 ![unix3red.neato](https://global.discourse-cdn.com/graphviz/original/2X/6/6ea43601b6ce487c74bcd33a0b9676ba2b09b132.png)

How? We send the **dot** output (with **-Tdot** file format) to **neato** for a _second opinion_. So  
_standard_:  
`dot -Tpng unix.gv -o unix.png`  
_alternate_:  
`dot -Gsplines=true unix.gv | neato -n -Tpng -o unix.alt.png`

- Works on every OS
- Use **neato -n**
- Remember to explicitly set **splines=true** (will work w/ other **splines** settings, but will seldom produce a difference)
- Do _not_ explicitly set **layout** in the input file

What’s going on?  
**Dot** does the node layout (and the edge layout), but we are sending the result to **neato** for an alternate edge layout. See [FAQ | Graphviz](https://graphviz.org/faq/#FaqDotWithNodeCoords)

Here are some other examples - the **neato** result placed on top of the **dot** version. Enjoy!

 ![trash3.OVER](https://global.discourse-cdn.com/graphviz/original/2X/f/fe63f6513bd783540f6ff17248929b2582d5477d.png)  
 ![ole99.OVER](https://global.discourse-cdn.com/graphviz/original/2X/6/67d16e82768faeb71c90ca4e46ad5dfca9f1494d.png)  
 ![loopTest2.OVER](https://global.discourse-cdn.com/graphviz/original/2X/d/d28d889c35bb9d11c955f7932785e951ba946240.png)  
 ![fig6.OVER](https://global.discourse-cdn.com/graphviz/original/2X/0/0eb319e919e17ff44afcc93412d4d2c06f26ebf7.png)  
 ![dpd.OVER](https://global.discourse-cdn.com/graphviz/original/2X/5/5eae3b92418d24bb818c628117abbc7108086691.png)
