On Feb 23, 8:06 am, Jason Grout <[email protected]> wrote:
> On 02/20/2010 08:11 PM, Bruce Cohen wrote:
>
> > I am trying to use the path object 
> > (seehttp://matplotlib.sourceforge.net/users/path_tutorial.html).
> > This is code taken from the tutorial (with one change to show the
> > resulting png file).  The code works fine in python, but cuts off
> > about the bottom fifth of the graphic in Sage.  I have published this
> > at
> >http://sagenb.org/home/pub/1648/
>
> The image in the published worksheet looks fine.  What exactly do you
> mean by "in python" and "in Sage" above?

sagenb is down at the moment, so I can't recheck it.  On my local
machine I get the bottom cut off, but when I resave the file,
e.g.
plt.savefig('foo.png',dpi=72)
The new picture looks fine as you say.

Your pointer to
http://old.nabble.com/saving-images-using-pure-matplotlib-in-Sage-cuts-off-the-bottom-part-%28and-produces-corrupt-file-%29-tt25702258.html#a25702258

has been helpful for now.

> ...  What exactly do you
> mean by "in python" and "in Sage" above?
I have installed matplotlib as part of a vanilla python system at the
unix command line e.g.
[herstein-2:~] 4% python
Python 2.6.1 (r261:67515, Dec  6 2008, 16:42:21)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin


Thanks.

-Bruce


-- 
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-support
URL: http://www.sagemath.org

Reply via email to