On 27.01.2017 01:49, Steve wrote:
> I've tried fit_view options and rescaling pos by hand, all to no avail.

Strange, since fit_view should be able to do exactly what you want.

With your example, I can make the drawing fit the window with:

   gt.graph_draw(g,pos=pos,vertex_text=g.vertex_index, fit_view=.5)

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to