|
From: Benjamin R. <ben...@ou...> - 2012-06-15 13:50:43
|
Khary,
On Sun, Jun 10, 2012 at 3:30 PM, surfcast23 <sur...@gm...> wrote:
>
> to matplotlib-use.
> Hi,
>
> I have a data set that is composed of x,y,z coordinates of the center of
> cells and counts of objects in each contained in cell. I am using the
> following code to do a scatter plot of the counts per cell.
>
>
> ax = fig.add_subplot(111, projection='3d')
> ax.scatter(Xa, Ya, Za, zdir='z', s=C, c='b')
> ax.set_xlabel('X Label')
> ax.set_ylabel('Y Label')
> ax.set_zlabel('Z Label')
> plt.show()
>
> Where Xa, Ya, Za, are arrays containing the cell centers, and C is an array
> of counts per cell. Below is a plot I did where the blue circles represent
> the "size in points^2. It is a scalar or an array of the same length as x
> and y."(Quote from docs). What I would like to do is have the plot show
> the actual number of counts as points in the plot. Is such a thing
> possible?
> Thanks
>
> Best,
> Khary
>
I think this example might be what you are looking for:
http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html#text
Cheers!
Ben Root
|