Comments (8)
It sounds like #96 might go some way to address this.
That said, I feel we're wandering outside the remit of xdot.py
. I accepted printing because it was "easy". If it turns out it's not that easy, then I rather not burdern xdot.py
with printing. xdot.py
was meant for visualization. If folks want to convert dot to something else, they should just use Graphviz tools directly. xdot.py
is not meant to be an UI for Graphviz tools. Just an interactive visualizer.
from xdot.py.
Can you please give some more detail on how you got to this output, so one can reproduce it?
from xdot.py.
This DOT is clipped slightly when printed:
graph {
rankdir=LR;
a -- { b c d }; b -- { c e }; c -- { e f }; d -- { f g }; e -- h;
f -- { h i j g }; g -- k; h -- { o l }; i -- { l m j }; j -- { m n k };
k -- { n r }; l -- { o m }; m -- { o p n }; n -- { q r };
o -- { s p }; p -- { s t q }; q -- { t r }; r -- t; s -- z; t -- z;
{ rank=same; b, c, d }
{ rank=same; e, f, g }
{ rank=same; h, i, j, k }
{ rank=same; l, m, n }
{ rank=same; o, p, q, r }
{ rank=same; s, t }
}
from xdot.py.
crazy.gv.txt example prints like this:
from xdot.py.
IMO, for large graphs xdot should offer the user to choose how many pages to split it into in X/Y directions.
But it should never just clip graphs.
from xdot.py.
OK, you used "print to file". Yes, I can confirm this looks really bad, and for me it also clips the graph the other way around.
In case you want to use another export feature, I added one in #96. However the pdf export will not stick to a paper page format.
from xdot.py.
I press the Print button and then save as PDF.
from xdot.py.
Alternatively you can just fix the pdf writer to center the drawing properly in the page.
from xdot.py.
Related Issues (20)
- Allow using dot parser in a server environment HOT 10
- pipx installation guide HOT 4
- Unable to parse dot file (other parsers are able to display) HOT 2
- Drag nodes with mouse HOT 1
- xdot doesn't define dependency on 'gi' HOT 1
- xdot does not warn about missing fonts HOT 2
- New 1.3 version HOT 1
- Unknown xdot opcode '>' with new graphviz version HOT 4
- TypeError with `-n, --no-filter` (version 1.3) HOT 3
- Mention numpy dependency in README HOT 1
- xdot imports gi, which is not available for python3.9.1.0 HOT 1
- traceback printed to stderr when cursor theme doesn't contain HAND2 icon HOT 2
- Search function should also search in subgraph labels HOT 3
- Show tooltip when mouse moves above object. HOT 3
- Parser(?) error: unknown xdot opcode '0' HOT 7
- Markdown for tooltips HOT 2
- Ignore empty nodes HOT 1
- Graph bounding box canβt be calculated HOT 9
- GUI search text box size restriction too short HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdot.py.