#4194: pylab plots cut off
----------------------+-----------------------------------------------------
Reporter: malb | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.1.3
Component: graphics | Keywords: plot
----------------------+-----------------------------------------------------
On Thursday 25 September 2008, Stan Schymanski wrote on [sage-support]:
> Dear all,
>
> When I upgraded to 3.1.2, I found that some of my plots generated
> using pylab in the notebooks miss their bottom bits. It seems to be
> related to the dpi setting. Example:
{{{
import pylab
x1 = srange(0,1.1,0.01)
d1 = [2*x+x^2 for x in x1]
pylab.clf() # clear the figure first
pylab.figure(1)
pylab.plot(x1,d1, label="d1")
pylab.ylabel("$f(x)$") # label the axes
pylab.xlabel("$x$")
pylab.savefig('foo.png',dpi=72) # fire!
}}}
> If I leave the "dpi=72" out in the last line, the plot is larger and
> complete. This problem did not occur in sage 3.1.1, so I assume that
> it is a bug.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4194>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---