Michel wrote:
> I am trying to use the Graph functionality in sage but it does not
> quite work.
> 
> I do
> 
> G=DiGraph({0: {2: '3*x^2'}, 1: {0: '3/x'}, 2: {1: '6*x^2'}})
> G.show()
> 
> A pgn viewer pops up showing the graph indeed. However:
> 
> (a) The vertex labels are cropped.
> (b) No edge labels are shown.
> 
> Am I doing something wrong?
> 


Try:

G=DiGraph({0: {2: '$3*x^2$'}, 1: {0: '$3/x$'}, 2: {1: '$6*x^2$'}})
G.plot(edge_labels=True).show(axes_pad=.2)

Thanks,

Jason

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to