First time here? Check out the FAQ!

Ask Your Question
0

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

asked 11 years ago

AndreWin gravatar image

updated 11 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 11 years ago

AndreWin gravatar image

updated 11 years ago

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

Preview: (hide)
link

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 ( 11 years ago )

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: 11 years ago

Seen: 1,859 times

Last updated: Sep 02 '13