Earlier quoted context omitted.
Better integration with TeX, I want to put formulas inside the graph using the exact same fonts as in the rest of my paper.
I'm not a TeX user, are you asking for: 1. TeX output file format, but with current font drivers 2. Current output file formats, but with TeX fonts 3. TeX output with TeX fonts 4. Something else
Create diagrams with code using Graphviz
191–200 of 221 posts
Re: Create diagrams with code using Graphviz
#192Earlier quoted context omitted.
> - find someone to donate a generic orthogonal routing algorithm based on a modern algorithm since people want this > - it would be a big effort, but move the core algorithms to a framework that supports interaction with layout generation Yup, I think these are the ones that mean I never actually end up using Graphviz for anything :) If I'm generating graphs, I want them laid out in a hierarchical style. To do that,…
So what library do you use for hierarchical layouts?
Re: Create diagrams with code using Graphviz
#193Earlier quoted context omitted.
> - better default styles that don't look like troff from 1985 Design is not something that should be tied to a particular decade. It's not fashion. Good design is timeless and only adopts to new technologies/media. Design is how well a particular solution works for the purpose of it. If it looks like 1985 and works well, there is absolutely no reason to change it. If it doesn't, then there is no need to look at "mod…
> it’s not fashion Many would argue good fashion is timeless as well. A good chunk of haute couture from decades past would be seen as modern and appealing today. (Which is why the houses like to repackage and ship them as such...)
But not at every given point in time. That fashion ebbs and flows is a given, but that's not the same thing as being timeless.
Re: Create diagrams with code using Graphviz
#194Earlier quoted context omitted.
Does it have graph-drawing included?
That's one of its main uses. One thing it does not do (or I don't know how) and graphviz does, though, is arranging nodes intelligently so as to minimize clutter and edge distances. That's one of the nice things in graphviz.
It's described in part IV of the pgf manual.
Re: Create diagrams with code using Graphviz
#195We're reluctant to be exposed to too much anger about misfeatures in 20 year old code that was basically a prototype that escaped from the lab, but go ahead, ask us anything. We've gotten a lot of help lately from Magnus Jacobsson, Matthew Fernandez and Mark Hansen on cleaning up the website and the code base, even some persistent bugs we could never find ourselves. Improvements that would benefit the community the m…
I'd rather have graphviz expose a kind of layout engine such that it can take the size each node will occupy (determined by whatever's going to draw them) and use that to create a layout, feeding path info to something that can handle the actual drawing, than have more drawing options in Graphviz itself. I think that doing so is (so far as I could tell, last time I tried) extremely awkward at best is why it's not emb…
Re: Create diagrams with code using Graphviz
#196Earlier quoted context omitted.
So what library do you use for hierarchical layouts?
Not OP, but I find yEd by yworks is a really good editor, and they also have a really cool developer library yFiles for HTML. It’s all proprietary, but just amazing to work with. Here’s an example of what you can do they made for GDC2019: https://live.yworks.com/demos/promo/GDC2019/ (It’s not mobile friendly however).
Thank you for the kind words.
I've tried to make it mobile-friendlier, after our marketing team told me that most people who come via Twitter use a phone. But we kinda ran out of time, so I only managed to fix the most egregious problems. By now I also have a few ideas how to get the edge paths to be much better (and built-in Bézier spline routing would have helped, but that was only released publicly ... two days ago). Admittedly, while that layout has been produced by yFiles' hierarchical layout it needed a bit massaging to do so properly (about 200 lines of custom layout code, if I remember correctly). However, a proper library that gives you that flexibility helps tremendously, of course. Sometimes, trying to get Graphviz to do the right thing can be pretty complicated and may involve hacks like invisible edges to force a certain layering (although that was way back and I didn't know about "rank=foo" back then; perhaps the invisible edges were really not needed).
In any case, yEd Live (https://www.yworks.com/yed-live/), built on yFiles for HTML, also has an undocumented, incomplete, and rudimentary Graphviz import. I've got a fairly exhaustive list of issues and missing features, but little time to tackle it, sadly. This is further complicated by the fact that the DOT language uses attributes to describe the graph structure, visual attributes of items, and to control layout settings. That makes mapping Graphviz to anything else a bit hard.
Re: Create diagrams with code using Graphviz
#197What I've been craving for is a way to respect the order of the nodes when being drawn. Since currently it re-orders them to occupy less space. With this I would be able to finish my data flow diagram out of a functional programming project. To describe in a visual way how the function calls are happening.
Re: Create diagrams with code using Graphviz
#198I ended up with a different tool, but I was uncomfortable using drawing apps for diagrams, and only rarely included them in my blog until I could use text to define them. I’m all-in on Markdown + Github for writing, so working with text-driven diagrams is a natural fit.
What tool did you use? I’ve been using mermaid and its markdown plug-ins and like it quite a bit, but am always looking for new ways.
Markdown forces me to focus on just the words, not the layout and fancy formatting. Mermaid does the same thing for diagrams: Anything I can draw with a pencil but can't express in Mermaid must be simplified or broken into separate sub-diagrams.
This would be terrible if I was trying to draw a diagram of the entire infrastructure of a modern SaaS company, but is actually good when I am trying to write a post explaining ideas: Multiple simple diagrams interspersed with text get the job done.
Re: Create diagrams with code using Graphviz
#199Re: Create diagrams with code using Graphviz
#200I’d like to write some scripts that can take some of my code and produce a graph of it. Things I’d like is for example to draw a GCP cloud build file, or something like that. What would be a good intermediate format for this? I’ll read an xml or yaml file into a python list of dicts and then loop through it and write ... Graphviz? Mermaid? Tikz? What do you guys recommend?
Using graphviz for visualizing these things is fast and easy. print('digraph foo {') # adj_list contains tuples of (parent node name, child node name) for parent, child in adj_list: print(f'{parent} -> {child}') print('}') Redirect that to a file and view with `xdot`, done. I've done exactly this a few days ago to visualize the Linux build graph: https://q3k.org/u/73839114a0e5ee65002029892a069dd1b645a8f9f0...