On Thu, Oct 14, 2010 at 4:54 AM, Pedro M. Ferreira
<pmffferre...@gmail.com>wrote:

> Well, it did help at least to understand a bit more, although I still
> fail to do it.
>
> The code in the file axes3d.py says that keyword arguments passed to
> scatter3D are passed on to matplotlib.scatter, so I would expect the
> following two figures to work similarly in terms of color:
>
> import matplotlib as mpl
> import numpy as np
> from mpl_toolkits.mplot3d import Axes3D
>
> f1=mpl.figure()
> mpl.scatter(X,Z,c=np.abs(Z/3.0)) # My Z is in [-3.0, 3.0]
>
> f2=mpl.figure()
> ax=Axes3D(f2)
> ax.scatter3D(X,Y,Z,c=abs(Z/3.0))
>
> mpl.show()
>
> It happens that f1 shows what I expect, a scatter in 2D with the
> colors of markers mapped to a colormap (I believe its jet).
> For f2, the markers appear as white filled circles.
>
> I am using python 2.6.6 in Debian squeeze (amd64) with
> python-matplotlib version 0.99.3-1
>
>
Ah, that might explain the problem!  I don't have the time to verify this
now, but I seem to remember doing a bug fix where some of the parameters
being passed into scatter3d() was being 'swallowed' and not passed down to
scatter().  You might need to upgrade to the maintenance branch of mpl
v1.0.0 in svn.  Note that the problem was probably fixed *after* the release
of v1.0.0 if I remember it correctly, so you will need the latest revised
release from source control.

If you need help with that, just let us know.

Ben Root
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to