#4194: pylab plots cut off
----------------------+-----------------------------------------------------
Reporter: malb | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: graphics | Keywords: plot
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Comment(by jason):
Don't close this.
Something really, really weird is going on.
In a fresh Sage session (not even in the notebook, just in a Sage console
session), running the following (simplified from above) code produces png
that is cut off which is about 12K:
{{{
import matplotlib.pyplot as plt
import numpy
plt.figure()
plt.plot(numpy.arange(0,1.1,0.01))
plt.savefig('foo.png',dpi=72) # fire!
}}}
However, immediately saving the figure again using
{{{plt.savefig('foo.png',dpi=72)}}} writes a 13K file which is not cut
off.
Doing the same test with sage -python yields the correct figure the first
time. Doing the same test with the system python yields the correct
figure the first time. This is with the matplotlib 0.99.1 spkg installed.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4194#comment:4>
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
-~----------~----~----~----~------~----~------~--~---