Hi Erik,
I can reproduce your finding on my site. Maybe this kind of specifying the
coloring is not yet fully supported. I think Reinier Heeres is the one how
knows almost everything about mplot3D - maybe he can comment on this.
Kind regards,
Matthias
On Wednesday 20 January 2010 00:14:39 Erik Tollerud wrote:
> Apparently it wasn't recent enough - I updated to the latest svn and
> now they are sizing properly - thanks!
>
> Another oddity I've noticed, though - if I do
>
> ax.scatter3D(x,y,z,s=30*rand(20),c=rand(20))
>
> I would expect to see the points colored based on a color map for the
> supplied scalar values. Instead, they all appear white. If I do
> rand(20,3) , it gives random colors, but that's specifying r,g,b
> values instead of scalar mapping. Is there a way to do the color
> mapping directly as in the 2D scatter? (If not, it's of course
> possible to manually apply the mapping - just less convinient)
>
> On Mon, Jan 18, 2010 at 11:49 PM, Matthias Michler
>
> <MatthiasMichler@...> wrote:
> > Hi Erik,
> >
> > with current svn I see markers of different size. What version of
> > matplotlib you are using?
> >
> > Kind regards,
> > Matthias
> >
> > On Monday 18 January 2010 21:38:25 Erik Tollerud wrote:
> >> Is there a way to change the sizes of scatter plot markers for
> >> mplot3d.Axes3D.scatter3d ? I do
> >>
> >> from mpl_toolkits.mplot3d import Axes3D
> >> ax = Axes3D(gcf())
> >>
> >> x,y,z = randn(3,20)
> >> ax.scatter(x,y,z,s=30*rand(20))
> >>
> >> and I expect to see 20 points of a range of sizes from 1 to 30... but
> >> instead I see them all the same size. How can I set the size of the
> >> markers?
|