You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Current versions cannot reproduce rotate_axes_3d_demo.py #10980
However, the plot displayed the initial view, got stuck, and then finished without any errors. I later found that if I use another computer with an old matplotlib version (v1.5.3), the code runs correctly. I used pip to install different versions of matplotlib.
Code for reproduction
frommpl_toolkits.mplot3dimportaxes3dimportmatplotlib.pyplotaspltfig=plt.figure()
ax=fig.add_subplot(111, projection='3d')
# load some test data for demonstration and plot a wireframeX, Y, Z=axes3d.get_test_data(0.1)
ax.plot_wireframe(X, Y, Z, rstride=5, cstride=5)
# rotate the axes and updateforangleinrange(0, 360):
ax.view_init(30, angle)
plt.draw()
plt.pause(.001)
Activity
[-]Current versions cannot reproduce [/-][+]Current versions cannot reproduce rotate_axes_3d_demo.py[/+]dstansby commentedon Apr 7, 2018
I reckon this is an OSX backend bug; what result do you get from this:
EDIT: it works fine for me on OSX, but using
Qt5Aggbackend.snownontrace commentedon Apr 7, 2018
With both versions 1.5.3 and 2.2.2 I got "MacOSX"
It appears that I need to install PyQt5 for using Qt5Agg -- will try it later. Thanks!