#9211: graph vertices cut off
----------------------------+-----------------------------------------------
   Reporter:  jason         |          Owner:  jason, mvngu, ncohen, rlm
       Type:  defect        |         Status:  needs_review             
   Priority:  major         |      Milestone:  sage-4.7.2               
  Component:  graph theory  |       Keywords:                           
Work_issues:                |       Upstream:  N/A                      
   Reviewer:                |         Author:  Jason Grout              
     Merged:                |   Dependencies:                           
----------------------------+-----------------------------------------------
Changes (by ppurka):

  * status:  needs_work => needs_review


Comment:

 Added two patches. The
 [attachment:trac-9211-fix_cut_vertices_in_graphs.patch first one] is
 essentially the patch by jason redone to work with 4.7.2_alpha3.

 The [attachment:trac-9211-add_padding_to_graphs.patch second patch] adds
 extra padding to all graphs. The two pngs attached are the output of

 {{{
 M = matrix(RDF, [[1/3, 1/3, 1/3], [0, 1/4, 3/4], [1/2, 1/4, 1/4]])
 G=DiGraph(M, format='weighted_adjacency_matrix')
 G.show(vertex_size=800, edge_labels=True)
 }}}

 The file [attachment:with-additional-padding.png] is the result of both
 the patches being applied.

 Graphs currently look really bad without either of the two patches. The
 second patch is not a panacea for all cut off graph plots since it doesn't
 fix all cases. But my hope is that it fixes most commonly used cases.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9211#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to