Re: [graphviz-interest] 'grid' - a new dot option?

steve roush <[email protected]> Wed, 30 Dec 2015 12:57:46 -0700
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============2679618819158271387==
Content-Type: multipart/alternative;
 boundary="------------020208060108020602070802"

This is a multi-part message in MIME format.
--------------020208060108020602070802
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

The positioning capability already seems to exist - use the */pos/* attribute.
Here is a way to test this capability:

  * dot -Tdot unix2.gv >unix2dot.gv   # create a .gv file with "pos" attributes
    by using  -Tdot on the command line
  * edit the positions of some of the nodes with your favorite text editor
  * use neato to render the modified graph (using the -n1 command line option -
    edges will be repositioned, but not the nodes:
      o neato -n1 -Tsvg editedgraph.gv >editedgraph.svg



On 12/23/2015 6:01 PM, Ron Savage wrote:
> Hi
>
> I assume this can't be done right now, but is it feasible or even imaginable 
> that dot could have a new option to impose a grid on the graph?
>
> My idea is that we'd still have all - or most of - the options for defining 
> nodes and edges, but each node would havingto have an attribute being an (x, 
> y) pair, with the centroid of the node at that (x, y), and with the meaning 
> that the node is not to be moved.
>
> In other words, the graph could be imagined as graph paper, with an implicit, 
> i,e, invisible, grid each way, and with the nodes forced to reside at 
> intersections of this grid. The grid could of course be made visible with an 
> option.
>
> This clearly impacts on the amazing ability of dot to move nodes and re-route 
> edges, but I'm dreaming of somehow disabling this aspect of the code.
>
> Ideas, anyone?
>


--------------020208060108020602070802
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dwindows-1252"
      http-equiv=3D"Content-Type">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <font face=3D"Helvetica, Arial, sans-serif">The positioning capabilit=
y
      already seems to exist - use the <b><i>pos</i></b> attribute.=A0 <b=
r>
      Here is a way to test this capability:<br>
      <br>
    </font>
    <ul>
      <li><font face=3D"Helvetica, Arial, sans-serif">dot -Tdot unix2.gv
          &gt;unix2dot.gv=A0=A0 # create a .gv file with "pos" attributes=
 by
          using=A0 -Tdot on the command line</font></li>
      <li><font face=3D"Helvetica, Arial, sans-serif">edit the positions
          of some of the nodes with your favorite text editor</font></li>
      <li><font face=3D"Helvetica, Arial, sans-serif">use neato to render
          the modified graph (using the -n1 command line option - edges
          will be repositioned, but not the nodes:</font></li>
      <ul>
        <li><font face=3D"Helvetica, Arial, sans-serif">neato -n1 -Tsvg
            editedgraph.gv &gt;editedgraph.svg<br>
          </font></li>
      </ul>
    </ul>
    <font face=3D"Helvetica, Arial, sans-serif"><br>
    </font><br>
    <div class=3D"moz-cite-prefix">On 12/23/2015 6:01 PM, Ron Savage
      wrote:<br>
    </div>
    <blockquote cite=3D"mid:%[email protected]%3E"
      type=3D"cite">Hi
      <br>
      <br>
      I assume this can't be done right now, but is it feasible or even
      imaginable that dot could have a new option to impose a grid on
      the graph?
      <br>
      <br>
      My idea is that we'd still have all - or most of - the options for
      defining nodes and edges, but each node would havingto have an
      attribute being an (x, y) pair, with the centroid of the node at
      that (x, y), and with the meaning that the node is not to be
      moved.
      <br>
      <br>
      In other words, the graph could be imagined as graph paper, with
      an implicit, i,e, invisible, grid each way, and with the nodes
      forced to reside at intersections of this grid. The grid could of
      course be made visible with an option.
      <br>
      <br>
      This clearly impacts on the amazing ability of dot to move nodes
      and re-route edges, but I'm dreaming of somehow disabling this
      aspect of the code.
      <br>
      <br>
      Ideas, anyone?
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>

--------------020208060108020602070802--

--===============2679618819158271387==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============2679618819158271387==--