advaced scatter plot

Dear all, I was wondering if there is equivalent in python of this function:
PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot
at the locations specified in the vectors X and Y. The current colormap of
the figure is used for the color code. Any suggestions? Thanks.

···

--
View this message in context: http://old.nabble.com/advaced-scatter-plot-tp26779933p26779933.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

"scatter" should do it

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.scatter

http://matplotlib.sourceforge.net/search.html?q=codex+scatter

···

On Mon, Dec 14, 2009 at 11:31 AM, jenya56 <jenya56@...9...> wrote:

Dear all, I was wondering if there is equivalent in python of this function:
PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot
at the locations specified in the vectors X and Y. The current colormap of
the figure is used for the color code. Any suggestions? Thanks.

The update:
I was able to produce the plot with:

fig = P.figure()
ax = fig.add_subplot(1,1,1)
cmap = P.matplotlib.cm.jet
norm = P.matplotlib.colors.Normalsize(vmin=0,vmax=1)
sc = ax.scatter(ave_lon,ave_lat,c=v,cmap=cmap,norm=norm)
savefig('sg.png')

However, I have a few questions:
1.) How to control the size of each circle on the scatter plot
2.) How to add the coast line with lambert projection?
THANKS

jenya56 wrote:

···

Dear all, I was wondering if there is equivalent in python of this
function:
PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter
plot at the locations specified in the vectors X and Y. The current
colormap of the figure is used for the color code. Any suggestions?
Thanks.

--
View this message in context: http://old.nabble.com/advaced-scatter-plot-tp26779933p26779939.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi!

2009/12/14 jenya56 <jenya56@…9…>

1.) How to control the size of each circle on the scatter plot

Use the “s” option to scatter (units are points**2)

2.) How to add the coast line with lambert projection?

You want to use the basemap extension. An example can be found in this blog: <http://stevendkay.wordpress.com/2009/10/12/scatter-plots-with-basemap-and-matplotlib/>

Cheers,

Jose