[prev in list] [next in list] [prev in thread] [next in thread]
List: graphviz-interest
Subject: Re: [graphviz-interest] Semi-circular edges possible in dot
From: John Ellson <ellson () research ! att ! com>
Date: 2009-09-24 12:23:57
Message-ID: 4ABB64DD.2000509 () research ! att ! com
[Download RAW message or body]
On 09/24/2009 01:51 AM, Ryan Schmidt wrote:
>
> On Sep 24, 2009, at 00:36, Jeremy Douglass wrote:
>
>> Thanks for your suggestion. I looked up a method for approximating
>> semi-circles using b-spline control points, then used dot to render to
>> xdot or plain-ext and tested a simple script to replace the existing
>> inner-control points with mine.
>>
>> However, now I'm not sure how to render my changed xdot file. For a
>> given file foo.dot, I'm using
>>
>> dot -Txdot foo.dot -oout foo.xdot
>>
>> then modifying b-spline control points to create foo2.xdot and
>> finally running
>>
>> dot -Tpng foo.xdot -oout foo2.png
>>
>> ...however no matter what values I put in the b-spline control points,
>> they appear to be ignored by dot. I've combed the documentation, but
>> I'm stuck -- what am I doing wrong?
>>
>> Example changed statement (values after "B 4" are different, but graph
>> renders the same):
>>
>> A -> B [pos="e,71.587,23.781 36.169,23.805 43.869,23.054
>> 53.026,22.833 61.583,23.142", _draw_="c 9 -#0000ffff B 4 36 24 44 23
>> 53 23 62 23 ", _hdraw_="S 5 -solid c 9 -#0000ffff C 9 -#0000ffff P 3
>> 61 27 72 24 62 20 "];
>>
>> A -> B [pos="e,71.587,23.781 36.169,23.805 43.869,23.054
>> 53.026,22.833 61.583,23.142", _draw_="c 9 -#0000ffff B 4 36 200 200
>> 100 200 0 0 23 ", _hdraw_="S 5 -solid c 9 -#0000ffff C 9 -#0000ffff P
>> 3 61 27 72 24 62 20 "];
>
> Graphviz tools like dot don't use the _*draw_ attributes when using
> xdot files as input. They only generate them as output. To view them,
> you need to use an xdot renderer, such as my web-based canviz. There
> are probably other xdot renderers available too.
>
> http://www.canviz.org/
>
You should also be able to use "neato -n2 -Tpng" for rendering without
moving your adjusted spline pos:
dot foo.dot | munge_splines_to_your liking | neato -n2 -Tpng -o foo.png
This uses annoted dot as the intermediate format, but you could probably
use xdot instead (xdot is further annotated).
John
_______________________________________________
graphviz-interest@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic