Sorry, here is the full traceback. Thanks for looking into that!
Stan
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Users/sschym/.sage/sage_notebook/worksheets/admin/4/code/33.py", line
11, in <module>
pylab.axis([_sage_const_0 ,_sage_const_3 ,_sage_const_0
,_sage_const_3 ])
File
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/pyplot.py",
line 827, in axis
v = ax.axis(*v, **kwargs)
File
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/axes.py",
line 1250, in axis
self.set_xlim([v[0], v[1]])
File
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/axes.py",
line 1944, in set_xlim
xmin, xmax = mtransforms.nonsingular(xmin, xmax, increasing=False)
File
"/Users/sschym/Programs/sage-3.4/local/lib/python2.5/site-packages/matplotlib/transforms.py",
line 2237, in nonsingular
if (not np.isfinite(vmin)) or (not np.isfinite(vmax)):
TypeError: function not supported for these types, and can't coerce
safely to supported types
Jason Grout wrote:
> Stan Schymanski wrote:
>
>> Dear all,
>>
>> Since version 3.3, the option "pylab.axis([xmin,xmax,ymin,ymax])"
>> leads to an error. Does anyone know what is going wrong there and how
>> to get around it?
>>
>> Example generated in a Sage 3.4 notebook:
>>
>> import pylab
>> pylab.clf()
>> pylab.figure(1)
>> pylab.plot([0,1,2],[0,1,2],'b+')
>> pylab.axis([0,3,0,3])
>> pylab.savefig('foo.png')
>>
>> Traceback (click to the left for traceback)
>> ...
>> TypeError: function not supported for these types, and can't coerce
>> safely to supported types
>>
>>
>>
>
> Could you click to the left for the full traceback and post that?
>
> Thanks,
>
> Jason
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---