[ncl-talk] how to add text on a XY-plot
Mary Haley
haley at ucar.edu
Wed Sep 23 14:43:56 MDT 2015
My guess is that the text is appearing on the next page because you haven't
turned off the "frame" advance that all the gsn_csm_xxxx main plotting
scripts have on by default.
If you look at xy_20.ncl, you'll see that it has this resource:
res1 at gsnFrame = False
This tells NCL *not* to advance to the next page after gsn_csm_x2y2 is
called, which allows you to add text to the same page. Then, when you are
done drawing to that page, you need to call the "frame" procedure:
frame(wks)
--Mary
On Wed, Sep 23, 2015 at 2:22 AM, grace <313695096 at qq.com> wrote:
> Hi,all:
> I was learning how to add text on a XY-plot with the example xy_20.ncl
> on http://www.ncl.ucar.edu/Applications/Scripts/xy_20.ncl.
> But the texts I add move to the next page,just like this:
>
> what should I do? Or do you guys have some advice?
> By the way,how can I make the reference vector box smaller?
>
> Any information will be appreciated.
>
> _______________________________________________
> 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/20150923/d8005e06/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02B82EAA at 1EDF896D.46610256
Type: application/octet-stream
Size: 30155 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/d8005e06/attachment.obj
More information about the ncl-talk
mailing list