3 ms·
Nice! I like the default aesthetics! Btw, is there a succinct comparison to GraphViz? GraphViz is perheps a little tedious to write, and takes some work to ma
by samuell 4y ago
Nice! I like the default aesthetics!
Btw, is there a succinct comparison to GraphViz?
GraphViz is perheps a little tedious to write, and takes some work to make look good (which makes me appreciate the D2 style), but is also definitely possible in my experience.
E.g. SciPipe (https://scipipe.org https://scipipe.org) outputs pipeline diagrams in this style:
https://www.researchgate.net/profile/Samuel-Lampa/publication/326761313/figure/fig1/AS:654994197987328@1533174194487/Figure-Directed-graph-of-workkkow-processes-in-the-Genomics-Cancer-Analysis.png https://www.researchgate.net/profile/Samuel-Lampa/publicatio...
- justusw 4y agoI think one advantage in GraphViz is the ability to output EPS. I use this often for embedding into PDF via XeLaTeX and Pandoc filters. I also saw that D2 offers some kind of LaTeX output, but was not able to dig into the docs there further.
- alixanderwang 4y agoYeah it's just Mathjax equations. E.g. https://play.d2lang.com/?script=PNCxCsJADIfxPU_xH1uk4NzBJwlIkAtXTFs9r3iQ5t2lDl2_5YPfy2R51nXBcIOuZd5MRnwnM3xqEqOzOQHpvclBPWI3qakRADDbNN89g7kcfv8xrggwa5GHa9cuuR-0a314DgJ2CvoFAAD__w%3D%3D&layout=dagre https://play.d2lang.com/?script=PNCxCsJADIfxPU_xH1uk4NzBJwlI... I'm not familiar with EPS. Will investigate, ty. https://github.com/terrastruct/d2/issues/489 https://github.com/terrastruct/d2/issues/489
- justusw 4y agoI appreciate it! Mscgen also supports EPS, but I realize D2 is way, way more general, so having one tool and one syntax for everything would be great.
- nine_k 4y agoI suppose converting SVG to EPS should be relatively straightforward; some converters exist.
- taink 4y agoHere's a website with a list of comparisons made by them: https://text-to-diagram.com/ https://text-to-diagram.com/ GraphViz is included.
- samuell 4y agoThis is great, thanks!