[ncl-talk] How to show poymarker for each subplot when paneling?

Rick Brownrigg brownrig at ucar.edu
Tue Aug 11 09:51:10 MDT 2015


Hi,

I don't know for certain, but it looks like in your loop where you iterate
over  "num_distinct_markers" and call gsn_add_polymarker(), you are
overwriting the variable "dum(j)" each time.  There's this comment in the
docs for gsn_add_polymarker():

The value returned from this function must be assigned to a unique
variable. This is necessary so that the polymarkers "live" for the duration
of the NCL script. This is especially imperative if the call to
*gsn_add_polymarker* is inside a function or procedure. Please see the
examples
<http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polymarker.shtml#Examples>
section below for more information.

So I *think* maybe you want dum dimensioned as 3 x num_distinct_markers,
and inside the loop the assignment would be:

  dum(j,i) = gsn_add_polymarker(....)

Hope that helps...
Rick



On Tue, Aug 11, 2015 at 2:38 AM, xianglin72 <xianglin72 at icloud.com> wrote:

> Hi, all
>
>
>          I want to post some seperate markers in 3 plots and then panel
> them. However, the markers were not shown correctly
>
> in each sunplots (See the attached wrong.ps,   and the correct subplot
> was also atteched as the correct_subplot1.ps et al).
>
> I try many time , but can not find a resolution. (the script was also
> attached). Anyone can give me some help?
>
>
> Thanks
>
>
>
> Lin
>
>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150811/37d0ea09/attachment.html 


More information about the ncl-talk mailing list