import pylab as p
x = p.arange(-100, 300, 10)
y = abs(x)
p.plot(x, y, 'go')
p.savefig('plot.png')

This works as expected.  However, if I change the function from abs to
cos...

import pylab as p
x = p.arange(-100, 300, 10)
y = cos(x)
p.plot(x, y, 'go')
p.savefig('plot.png')

This fails ... seems like a coercion problem.  Can anyone tell me what
is wrong in the second case.  I need to figure this one out.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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