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

xianglin72 xianglin72 at icloud.com
Tue Aug 11 10:08:45 MDT 2015


Hi,
Thanks for the help. Your advice help to solve the problem.
Regards


Lin


原始邮件
发件人:Rick Brownriggbrownrig at ucar.edu
收件人:xianglin72xianglin72 at icloud.com
抄送:ncl-talkncl-talk at ucar.edu
发送时间:2015年8月11日(周二) 23:51
主题:Re: [ncl-talk] How to show poymarker for each subplot when paneling?


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 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/20150812/1802dc51/attachment.html 


More information about the ncl-talk mailing list