Re: Colorize markers from gsn_polymarker() with colormap

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Feb 05 2013 - 10:20:32 MST

Hi Akio,

What you described sounds to me like you are "binning" data.

That is, you want to collect all the markers that are equal to
say, value 150, and color them blue, and then
collect all the markers > 150 and < 250 and color them
yellow, and finally color all markers at value 250 yellow.

Deniz Bozkurt sent you an example that does this, which is based on the
"binning" example station_2.ncl, but his creates a color bar. Hopefully this
is what you need. (Thanks Deniz.)

I'll add an example of using markers with a color bar.


On Feb 5, 2013, at 5:26 AM, akio.hansen wrote:

> Hi,
> to visualize a little bit my purpose, I found out one plot, which shows
> exactly what I'm trying to do. It is at page 23 of the following Leeds
> Presentation:
> Does someone know, how to get this kind of plot with ncl, so colored
> markers with a colorbar?
> Thanks a lot!
> Akio
> -------- Original Message --------
> Subject: Colorize markers from gsn_polymarker() with colormap
> Date: 2013-02-04 21:28
> From: "akio.hansen" <>
> To: <>
> Hi,
> sorry, I'm a total NCL newbie and I hope my question is not too stupid,
> but even after six hours of searching the NCL website, mailing list and
> Google, I couldn't find a good solution for my problem... I actually use
> the sample station data "pw.dat" from the NCL homepage with the ASCII
> format "ID LAT LON PW", which I want to plot on a world map. The example
> plot works quite well. But now my problem: I want to colorize these
> markers with a colormap and not with bins like it is shown in
> "station_2.ncl" on .
> Besides this, I try to get a colorbar at the bottom, which shows me the
> values of the different colors. All my plots show only one-colored
> markers, if I don't use the bin scheme from the NCL example. So, my
> question would be, is there any possibility to use a automatic color map
> and not define each bin manually ? I hope you understand, what I try to
> do?!? ;-)
> I attached my actual code to this mail.
> Thank you all very much!
> Akio
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Feb 5 10:20:46 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 06 2013 - 16:37:00 MST