Questions about 3D plotting

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.

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

I'm sorry to disappoint, but 3D plotting has been unsupported for a long time
and was recently removed from the mpl codebase.

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.

probably because you have an old version of axes3d.py in your installation
directory...

But if I do an "from pylab import *",
the plot command does'nt work. Any ideas?

... but pylab.py knows that we dropped 3d support so it doesnt try to import
it anymore.

Darren

···

On Wednesday 09 July 2008 10:35:55 am anirudh vij wrote: