Closed williamstein closed 14 years ago
This is now fixed, presumably with the new matplotlib.
Question: is it possible to verify this in a doctest? The problem is that show uses save, but the saved figure is just a png.
Nope, I don't think a doctest makes much sense here, with our current framework.
Sometime, we'll probably use matplotlib's image testing framework...
Minh, can you close this? It works now on alpha.sagenb.org
(oops, I didn't mean to close it---I don't know exactly what your procedure is for things to do when you close a ticket...)
Attachment: plot-sin.png
based on Sage 4.1.2.alpha4
I can confirm this is now fixed:
[mvngu@darkstar sage-4.1.2.alpha4]$ ./sage -br main
----------------------------------------------------------
sage: Building and installing modified Sage library files.
Installing c_lib
scons: `install' is up to date.
Updating Cython code....
Time to execute 0 commands: 2.50339508057e-05 seconds
Finished compiling Cython code (time = 6.12911605835 seconds)
running install
running build
running build_py
running build_ext
Total time spent compiling C/C++ extensions: 0.919514894485 seconds.
running install_lib
running install_egg_info
Removing /home/mvngu/scratch/sandbox/sage-4.1.2.alpha4/local/lib/python2.6/site-packages/sage-0.0.0-py2.6.egg-info
Writing /home/mvngu/scratch/sandbox/sage-4.1.2.alpha4/local/lib/python2.6/site-packages/sage-0.0.0-py2.6.egg-info
----------------------------------------------------------------------
| Sage Version 4.1.2.alpha4, Release Date: 2009-09-27 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage: show(plot(sin(x),-10,10),ymin=-0.5, ymax=0.5,frame=true)
The resulting plot is attached.
CC: @jasongrout @sagetrac-mvngu
Component: graphics
Issue created by migration from https://trac.sagemath.org/ticket/2754