3D plot not working on Cloud

45 views
Skip to first unread message

Tomáš Michalík

unread,
Apr 26, 2014, 6:31:25 PM4/26/14
to sage-s...@googlegroups.com
Hello,
I have tried to plot 3D root system for A3 with help of tutorial ( http://www.sagemath.org/doc/reference/combinat/sage/combinat/root_system/plot.html#higher-dimension-affine-pictures ), but I got error, that plot3D is not implemented. I would like to ask you, if you are planning to implement it.

Commands I ran:
LA3 = RootSystem(["A",3,1]).ambient_space()
LA3.plot(reflection_hyperplanes=False, bounding_box=85/100)

Traceback:
Error in lines 2-2 Traceback (most recent call last): File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/sage_server.py", line 733, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/sage_salvus.py", line 2842, in displayhook show(obj) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/sage_salvus.py", line 2201, in show graphics.show_3d_plot_using_threejs(obj, **kwds) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/graphics.py", line 119, in show_3d_plot_using_threejs t.add(g, **kwds) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/graphics.py", line 81, in add self._call('add_3dgraphics_obj(obj)', obj={'obj':graphics3d_to_jsonable(graphics3d), 'wireframe':jsonable(kwds.get('wireframe'))}) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/graphics.py", line 387, in graphics3d_to_jsonable handler(p)(p) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/graphics.py", line 359, in convert_combination handler(x)(x) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/graphics.py", line 359, in convert_combination handler(x)(x) File "/projects/503b9e80-d5d3-4563-b456-c9f799487dbe/.sagemathcloud/graphics.py", line 384, in handler raise NotImplementedError("unhandled type ", type(p)) NotImplementedError: ('unhandled type ', <type 'sage.plot.plot3d.base.Graphics3d'>)

Thanks in advance.

Best regards,
Tomas Michalik

William Stein

unread,
Apr 28, 2014, 12:29:58 PM4/28/14
to sage-support
Hi,

There was a problem where the 3d graphics code was failing to render
the empty 3d object (sage.plot.plot3d.base.Graphics3d), which none of
my tests ever created, since it shouldn't get created by plotting
code. I've added code to handle that case. You have to restart your
project server to get the updated code, but it will plot your example
-- see attached.
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
Screen Shot 2014-04-28 at 9.13.43 AM.png
Reply all
Reply to author
Forward
0 new messages