Andrea Amantini / Jul 09 2018

Matplotlib Wireframes

get current figure from pyplot to display it in the editor.

from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

# Grab some test data.
X, Y, Z = axes3d.get_test_data(0.05)

# Plot a basic wireframe.
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)

Return a plotly Figure object to display it in the editor.

from plotly.graph_objs import *

Figure(data=[Scatter(x=[1, 2], y=[1,2])], layout=Layout())