Ask Your Question


asked 2013-01-23 11:48:06 -0500

hxfeng gravatar image

updated 2013-01-24 06:30:18 -0500

benjaminfjones gravatar image

Hi , I'm a new user of sagemath and when i evaluate :

x, y = var('x,y')
plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))

there is an error the message is as below ,I tried many times but still can't solve this problem ,how can I solve this problem ? thank you very much.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 10, in <module>
    exec compile(u'open("","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("aW1wbGljaXRfcGxvdDNkKHheMit5XjIrel4yPT00LCAoeCwgLTMsIDMpLCAoeSwgLTMsMyksICh6LCAtMywzKSk="),globals())+"\\n"); execfile(os.path.abspath(""))
  File "", line 1, in <module>
      File "/tmp/tmpR_uNrC/", line 3, in <module>
    exec compile(u'implicit_plot3d(x**_sage_const_2 +y**_sage_const_2 +z**_sage_const_2 ==_sage_const_4 , (x, -_sage_const_3 , _sage_const_3 ), (y, -_sage_const_3 ,_sage_const_3 ), (z, -_sage_const_3 ,_sage_const_3 ))
  File "", line 1, in <module>
      File "/usr/local/sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/sage/misc/", line 176, in displayhook
    print_obj(sys.stdout, obj)
  File "/usr/local/sage-5.5-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/sage/misc/", line 144, in print_obj
    print >>out_stream, `obj`
  File "base.pyx", line 81, in sage.plot.plot3d.base.Graphics3d.__repr__ (sage/plot/plot3d/base.c:2939)
  File "base.pyx", line 1128, in (sage/plot/plot3d/base.c:11464)
  File "base.pyx", line 621, in sage.plot.plot3d.base.Graphics3d.export_jmol (sage/plot/plot3d/base.c:6070)
  File "base.pyx", line 1440, in sage.plot.plot3d.base.Graphics3dGroup.jmol_repr (sage/plot/plot3d/base.c:15145)
  File "base.pyx", line 1643, in sage.plot.plot3d.base.TransformGroup.jmol_repr (sage/plot/plot3d/base.c:17385)
  File "base.pyx", line 1643, in sage.plot.plot3d.base.TransformGroup.jmol_repr (sage/plot/plot3d/base.c:17385)
  File "implicit_surface.pyx", line 1076, in sage.plot.plot3d.implicit_surface.ImplicitSurface.jmol_repr (sage/plot/plot3d/implicit_surface.c:12398)
  File "index_face_set.pyx", line 708, in sage.plot.plot3d.index_face_set.IndexFaceSet.jmol_repr (sage/plot/plot3d/index_face_set.c:8152)
  File "index_face_set.pyx", line 124, in sage.plot.plot3d.index_face_set.format_pmesh_vertex (sage/plot/plot3d/index_face_set.c:2812)
SystemError: Negative size passed to PyString_FromStringAndSize
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-01-23 12:30:20 -0500

ppurka gravatar image

Your question and error message are completely different. The implicit_plot in your error message is working just fine here. Also, it works fine in aleph.sagemath. I presume there is some other problem with your sage installation.

edit flag offensive delete link more


oh ,thank all the same , but I find every kind of 3d plot can't play I don't known why?

hxfeng gravatar imagehxfeng ( 2013-01-23 12:42:50 -0500 )edit

It would be helpful to have one command with its error, as well as about your platform - can you edit your question for this?

kcrisman gravatar imagekcrisman ( 2013-01-23 14:07:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-01-23 11:48:06 -0500

Seen: 144 times

Last updated: Jan 23 '13