From: anirudh v. <ani...@gm...> - 2008-07-09 14:35:57
|
Hi, First off, I'd like to congratulate the devs who wrote the 3D plotting module. Its great and fits a lot of my plotting needs without resorting to vtk, mayavi etc. But I've had some issues with 3D plots 1. If i do a ---- import pylab as p import matplotlib.axes3d as p3 fig=p.figure() ax = p3.Axes3D(fig) ax.scatter3D(ravel(x),ravel(y),ravel(z)) ax.set_xlabel('X') ax.set_ylabel('Y') ax.set_zlabel('Z') p.show() ---- then things work well. But if I do an "from pylab import *", the plot command does'nt work. Any ideas? 2. In the scatterplot, as well as other 3D plots, I would like to plot different datasets with different colors. While in plot(), "r." etc change color, in plot3d etc the option does'nt work. So, is there a way to use different colors in the same plot. 3. Is there any documentation on the 3D plotting functions. There are examples at http://scipy.org/Cookbook/Matplotlib/mplot3D, but I could'nt find any documentation on function calls, options etc. help(plot3d) just says plot3d(**args) without any other info. cheers, anirudh. |