Neither of the examples in doc/live/numerical_sage/plotting.html work on my sage-4.0.alpha0. I get the following results when they are run from a notebook:
The first three examples all fail with the same traceback: {{{id=16| import numpy from scitools import easyviz x = numpy.arange(-8,8,.2,dtype=float) xx,yy = numpy.meshgrid(x,x) r = numpy.sqrt(xx**2+yy**2) + 0.01 zz = numpy.sin(r)/r easyviz.surfc(x,x,zz) /// Traceback (most recent call last): r = numpy.sqrt(xx**2+yy**2) + 0.01 File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/ scitools/easyviz/__init__.py", line 1506, in <module> exec(cmd) File "<string>", line 1, in <module> File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/ scitools/easyviz/vtk_.py", line 1, in <module> from common import * File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/ scitools/easyviz/common.py", line 3, in <module> from scitools.numpytools import seq, iseq, asarray, NewAxis, ones, zeros, \ File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/ scitools/numpytools.py", line 247, in <module> (e, __name__) ImportError: No module named ma numpy import failed! see doc of scitools.numpytools module for how to choose Numeric instead }}} The last example fails like this: {{{id=18| import numpy from mayavi.tools import imv x=numpy.arange(-8,8,.2,dtype=float) def f(x,y): r=numpy.sqrt(x**2+y**2)+.01 return numpy.sin(r)/r imv.surf(x,x,f) /// Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/kwh/.sage/sage_notebook/worksheets/KevinHorton/11/code/ 6.py", line 15, in <module> exec compile(ur'imv.surf(x,x,f)' + '\n', '', 'single') File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/ Jinja-1.2-py2.5-linux-i686.egg/", line 1, in <module> File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/mayavi/ tools/imv.py", line 256, in surf zval = Numeric.ravel(sampler(x, y, z, f_args=f_args, f_keyw=f_keyw)) File "/opt/sage-4.0.alpha0/local/lib/python2.5/site-packages/mayavi/ tools/imv.py", line 185, in sampler Numeric.zeros(len(ya), ya.typecode()), AttributeError: 'numpy.ndarray' object has no attribute 'typecode' }}} I'm running sage-4.0.alpha0 on ubuntu 8.10 server. I suspect the first failure is possibly due to an scitools++ spkg that is not compatible with the latest numpy and matplotlib. Are these examples truly broken, or is there possibly a problem with sage-4.0.alpha0? -- Kevin Horton Ottawa, Canada --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---