[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Horizontal gap (hgap) not taken into account when creating
From: |
Tamás Nepusz |
Subject: |
Re: [igraph] Horizontal gap (hgap) not taken into account when creating a Sugiyama layout with the Python binding |
Date: |
Fri, 29 Mar 2013 22:05:11 +0100 |
> I had no success using the layout's bounding box as the value for my plot's
> bbox parameter, because I could only see a few nodes on the left edge of my
> rendered pdf or svg. I think this might be because my layout's bounding box
> has a negative first element? It was BoundingBox(-926.5, 1.0, 13.0, 5097.0).
Yes, that's the cause. Translate your layout first to ensure that the upper
left corner is at (0,0). You can use layout.translate() for that.
> However, when plotting I see some strange artifacts that were not visible
> when exporting to dot format and using Graphviz's dot renderer (which is
> similar to Sugiyama) : I wouldn't really know how to explain it so here is a
> screenshot :
> http://i.imgur.com/hhZz5v7.png
Whoa, that's a weird one. Can you send me a graph on which I can reproduce the
issue?
--
Tamas