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
lines.
See example xy_7.ncl at:
http://www.ncl.ucar.edu/Applications/xy.shtml
Instead of setting:
resR@xyDashPatterns = 1 ; dashed line for
2nd
You can set:
resL@xyMarkLineMode = "Markers"
and
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.
--Mary
On Jul 21, 2011, at 6:39 AM, bozkurtd@itu.edu.tr 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:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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