Ticket #4194 (closed defect: fixed)
pylab plots cut off
|Reported by:||malb||Owned by:||was|
|Cc:||mvgnu, mhansen, jason||Work issues:|
|Report Upstream:||Fixed upstream, in a later stable release.||Reviewers:|
|Authors:||Ryan Grout||Merged in:|
On Thursday 25 September 2008, Stan Schymanski wrote on [sage-support]:
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.
- Status changed from new to needs_review
- Authors set to Ryan Grout
comment:10 Changed 2 years ago by ryan
- Cc jason added
- Status changed from needs_review to needs_work
- Report Upstream changed from N/A to Fixed upstream, in a later stable release.