Re: polymarkers with right Y-axis

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 21 2011 - 08:20:25 MDT

Hi Deniz,

In order to use gsn_add_polymarker, you need a plot to attach the
markers to.

Have you looked into using gsn_csm_xy2, which allows you to have two Y
axes against one X axis? You can set individual resources for each
dataset, and you can also specify that you want markers instead of

See example xy_7.ncl at:

Instead of setting:

   resR@xyDashPatterns = 1 ; dashed line for
You can set:
   resL@xyMarkLineMode = "Markers"
   resR@xyMarkLineMode = "Markers"
to get markers on both axes.

If you have already called gsn_csm_xy2 to generate a line plot, and
you're needing to add an additional set of markers, then see example
xy_26.ncl on the same page. It shows how to use gsn_add_polyline to
add lines to the second Y axis, but you can use the same code to call
gsn_add_polymarker instead.

Basically, you need to use the special "xy2" attribute that's returned
by gsn_csm_xy2 as the plot that you attach the markers to.


On Jul 21, 2011, at 6:39 AM, wrote:

> Dear NCL,
> I'd like to plot two datasets by using polymarkers on two different
> Y-axis and on same X-axis. Is there any way to tell
> "gsn_add_polymarker" function to use the right Y axis for the second
> data set?
> Thanks.
> deniz
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Jul 21 08:20:40 2011

This archive was generated by hypermail 2.1.8 : Fri Jul 29 2011 - 08:44:18 MDT