Ask Your Question
0

How can I do my matplotlib 3D graph can be rotated everybody using jmol?

asked 2013-09-01 14:42:59 +0100

AndreWin gravatar image

updated 2013-09-01 14:43:53 +0100

Hello! How can I do my matplotlib 3D graph can be rotated everybody using jmol?
For example I created 3D graph using matplotlib:

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

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
X, Y, Z = axes3d.get_test_data(0.01)
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
plt.savefig('1.png')
plt.show()

But created graph is only picture becase I used plt.savefig. But I want to rotate 3D graph. I have many graphs with experimental (not analitical formulae) data, but plot3d is only for analitical surfaces. Please help me. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-02 03:52:13 +0100

AndreWin gravatar image

updated 2013-09-02 03:52:30 +0100

It seems I found the answer ^_^
I should use list_plot3d command.

edit flag offensive delete link more

Comments

You probably should be aware of the egregious behavior of `list_plot3d` I attempted to fix in ticket 12798. Only the last two hunks of the first patch are needed for the fix.

ppurka gravatar imageppurka ( 2013-09-03 13:30:10 +0100 )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

Stats

Asked: 2013-09-01 14:42:59 +0100

Seen: 1,812 times

Last updated: Sep 02 '13