Re: [graphviz-interest] graphviz-interest Digest, Vol 126, Issue 6

Federico Spinazzi <[email protected]> Wed, 19 Nov 2014 01:52:48 +0100
Newsgroups gmane.comp.video.graphviz
Message-ID <CABcz1qSFc0dX-uFO+fDioFUOYkOXYZahV=7AHihNcLGcwCVKPg@mail.gmail.com>
Many thanks Emden, with some embrassement for my lazyness.
Thank you Ron, also, for your appreciation.
Federico

On Tue, Nov 18, 2014 at 6:00 PM, <
[email protected]> wrote:

> Send graphviz-interest mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.research.att.com/mailman/listinfo/graphviz-interest
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of graphviz-interest digest..."
>
>
> Today's Topics:
>
>    1. viewport feature enanchement proposal (Federico Spinazzi)
>    2. Re: viewport feature enanchement proposal (Emden R. Gansner)
>    3. Re: viewport feature enanchement proposal (Ron Savage)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 17 Nov 2014 19:17:26 +0100
> From: Federico Spinazzi <[email protected]>
> To: [email protected]
> Subject: [graphviz-interest] viewport feature enanchement proposal
> Message-ID:
>         <
> CABcz1qTsh+naQHXysPkCRKGZFoq6rZYuE-UQXXmV6Ypis-9HTQ@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
> given the fact that ps2 output is of very high quality, I'm finding that
> pairing statically zoomed parts of a knowledge map with the entire map
> itself can be very very valuable in (self-)learning context (which context
> is not a learing context?).
>
> It seems to me that a viewport 'mode', specified at graph level with, say,
> viewport=node and at node level with viewport/viewported=true could be more
> easy to use as the bounding box computation would be made by the code (eh
> eh).
>
> The viewport should include each viewport=true node and each node falling
> in between.
>
> It's not my fault if you have added world class desktop publishing features
> to layout algoritms:
>
> http://professosaurus.altervista.org/lezioni-2a-completo-000.pdf
>
> http://professosaurus.altervista.org/pieno-expose_each_part_in_order-000.pdf
> http://professosaurus.altervista.org/evoluzione-completo-000.pdf
>
> The sense of this email, surely, is a big thank to you all, not a vanity
> fair of my pdfs, of course.
>
> Many thanks,
> Federico
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.research.att.com/pipermail/graphviz-interest/attachments/20141117/00750d4b/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 17 Nov 2014 14:25:50 -0500
> From: "Emden R. Gansner" <[email protected]>
> To: Federico Spinazzi <[email protected]>,
>         [email protected]
> Subject: Re: [graphviz-interest] viewport feature enanchement proposal
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> You've already got this feature. Run whatever commands you need to
> generate a dot file with complete
> layout information, e.g.,
>
> sfdp -Goverlap=prism -Gcharset=latin1 gd_1994_2007_8comp.gv | gvmap -e >
> graph.gv
>
> and assume the nodes you want in the viewport have the attribute
> viewport=true. You can then run
>
>       neato -n2 -Tpdf -Gviewport=$(gvpr -fmkview graph.gv) graph.gv >
> graph.pdf
>
> to get what you want. The mkview script takes an optional margin argument:
>
>       neato -n2 -Tpdf -Gviewport=$(gvpr -fmkview -a300 graph.gv) graph.gv
> > graph.pdf
>
> (You may need to modify the command to work with the shell or scripting
> language you are using.) The
> mkview gvpr script is appended.
>
>           Emden
>
> =====================
> /* mkview */
> BEGIN {
>    double mg, margin = 36;
>    double maxd = 1.7976931348623157e+308;
>    double llx, lly, urx, ury, x, y, w2, h2;
>    llx = lly = maxd;
>    urx = ury = -maxd;
>    if (ARGC) {
>      if ((sscanf (ARGV[0],"%lf", &mg)) && (mg >= 0))
>        margin = mg;
>    }
> }
> N [viewport] {
>    sscanf (pos, "%lf,%lf", &x, &y);
>    sscanf (width, "%lf", &w2);
>    sscanf (height, "%lf", &h2);
>    w2 *= 36.0;
>    h2 *= 36.0;
>    if (x-w2 < llx) llx = x-w2;
>    if (x+w2 > urx) urx = x+w2;
>    if (y-h2 < lly) lly = y-h2;
>    if (y+h2 > ury) ury = y+h2;
> }
> END {
>    printf("%.06f,%.06f,1,%.06f,%.06f", urx-llx+margin, ury-lly+margin,
> (urx+llx)/2.0, (ury+lly)/2.0);
> }
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.research.att.com/pipermail/graphviz-interest/attachments/20141117/551f3eca/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 18 Nov 2014 07:50:24 +1100
> From: Ron Savage <[email protected]>
> To: [email protected]
> Subject: Re: [graphviz-interest] viewport feature enanchement proposal
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Federico
>
> Beautiful work.
>
> I look forward to Gloptodon etc becoming standard node shapes within
> Graphviz :-)).
>
> On 18/11/14 05:17, Federico Spinazzi wrote:
> > Hi,
> > given the fact that ps2 output is of very high quality, I'm finding that
> > pairing statically zoomed parts of a knowledge map with the entire map
> > itself can be very very valuable in (self-)learning context (which
> > context is not a learing context?).
> >
> > It seems to me that a viewport 'mode', specified at graph level with,
> > say, viewport=node and at node level with viewport/viewported=true could
> > be more easy to use as the bounding box computation would be made by the
> > code (eh eh).
> >
> > The viewport should include each viewport=true node and each node
> > falling in between.
> >
> > It's not my fault if you have added world class desktop publishing
> > features to layout algoritms:
> >
> > http://professosaurus.altervista.org/lezioni-2a-completo-000.pdf
> >
> http://professosaurus.altervista.org/pieno-expose_each_part_in_order-000.pdf
> > http://professosaurus.altervista.org/evoluzione-completo-000.pdf
> >
> > The sense of this email, surely, is a big thank to you all, not a vanity
> > fair of my pdfs, of course.
> >
> > Many thanks,
> > Federico
> >
> >
> > _______________________________________________
> > [email protected]
> > http://lists.research.att.com/mailman/listinfo/graphviz-interest
> >
>
> --
> Ron Savage - savage.net.au
>
>
> ------------------------------
>
> _______________________________________________
> graphviz-interest mailing list
> [email protected]
> http://lists.research.att.com/mailman/listinfo/graphviz-interest
>
>
> End of graphviz-interest Digest, Vol 126, Issue 6
> *************************************************
>

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest