plot(sin,(0,1),ymin=-2,ymax=2)
However, plot does not recognize any of these additional parameters, giving me:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/greg/.sage/sage_notebook/worksheets/admin/3/code/51.py",
line 4, in <module>
plot(sin,(Integer(0),Integer(1)),ymin=-Integer(2),ymax=Integer(2))
File "/Applications/sage/local/lib/python2.5/site-packages/sympy/plotting/",
line 1, in <module>
File "sage_object.pyx", line 92, in
sage.structure.sage_object.SageObject.__repr__
File "/Applications/sage/local/lib/python2.5/site-packages/sympy/plotting/plot.py",
line 476, in _repr_
File "/Applications/sage/local/lib/python2.5/site-packages/sympy/plotting/plot.py",
line 721, in show
File "/Applications/sage/local/lib/python2.5/site-packages/sympy/plotting/plot.py",
line 837, in save
File "/Applications/sage/local/lib/python2.5/site-packages/sympy/plotting/plot.py",
line 1050, in _render_on_subplot
File "/Users/was/build/sage-2.10/local/lib/python2.5/site-packages/matplotlib/lines.py",
line 279, in __init__
File "/Users/was/build/sage-2.10/local/lib/python2.5/site-packages/matplotlib/artist.py",
line 394, in update
AttributeError: Unknown property ymin
Also, when I try:
plot(sin,(0,1))
for some reason the x axis ranges from -1 to +1, while its plots x
from 0 to 1 as expected.
Thanks for the help!
-- Greg
Do
plot(whaterver).show(xmin=0, xmax=1, ymin=0, ymax=1)
William