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])


Try:

pylab.axis([int(0), int(3), int(0), int(3)])

Does it work now?

Again, I think this is the problem that numpy/scipy doesn't play well 
with Sage integers and is expecting python integers.


Jason



> 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
> 
> 
> Thanks already for your help!
> 
> Cheers,
> Stan
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to