graph_draw clipping issues
How do I fix clipping issues with graph_draw when they arise? Here's a minimal example that shows some clipping of the self-loops. I have this issue occasionally with mor complicated graphs too. edge_list = [ (0,1), (1,2), (2,0), (0,2), (1,1), (2,2) ] g = gt.Graph() g.add_edge_list(edge_list) pos = gt.sfdp_layout(g) gt.graph_draw(g,pos=pos,vertex_text=g.vertex_index) I've tried fit_view options and rescaling pos by hand, all to no avail. -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
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 <tiago@skewed.de>
participants (2)
-
Steve -
Tiago de Paula Peixoto