CoCalc Shared Files3d.sagewsOpen in CoCalc with one click!
Author: Harald Schilly
Views : 14
import matplotlib.pyplot as plt fig = plt.figure() ax = fig.gca(projection = '3d')
Error in lines 3-3 Traceback (most recent call last): File "/projects/20e4a191-73ea-4921-80e9-0a5d792fc511/.sagemathcloud/sage_server.py", line 879, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/sage/sage-6.7/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/figure.py", line 1221, in gca return self.add_subplot(1, 1, 1, **kwargs) File "/projects/sage/sage-6.7/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/figure.py", line 896, in add_subplot self, *args, **kwargs) File "/projects/sage/sage-6.7/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/projections/__init__.py", line 119, in process_projection_requirements projection_class = get_projection_class(projection) File "/projects/sage/sage-6.7/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-linux-x86_64.egg/matplotlib/projections/__init__.py", line 63, in get_projection_class raise ValueError("Unknown projection '%s'" % projection) ValueError: Unknown projection '3d'
%python import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() #ax = fig.add_subplot(111, projection='3d') fig.savefig('test.png') salvus.file("test.png")
graphs.IcosahedralGraph().plot3d(background="white")
3D rendering not yet implemented