Hi, I would like to add plots to a document using sagetex and my script uses matplotlib to generate the plot. Is it possible to matplotlib with sagetex? I understand that /sageplot{} wants a <graphics obj> with a .save method. However, I have not found how to generate such an object.
For example if I use the simple example: sage: from pylab import * sage: t = arange(0.0, 2.0, 0.01) sage: s = sin(2*pi*t) sage: P = plot(t, s, linewidth=1.0) sage: xl = xlabel('time (s)') sage: yl = ylabel('voltage (mV)') sage: t = title('About as simple as it gets, folks') sage: grid(True) sage: savefig('sage.png') Where is the <graphics obj>? cheers, Adam --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---