[ncl-talk] doubt regarding title

Mary Haley haley at ucar.edu
Thu Sep 21 15:55:26 MDT 2017


Hello,

I added an example showing how to add subtitles to the top of a series of
paneled plots.  See example panel_41.ncl at:

http://www.ncl.ucar.edu/Applications/panel.shtml#ex41

You'll want to copy the "draw_panel_titles" procedure from the script, and
then call it yourself with something like:

  ; Panel the WRF plots.

    pnlres                            = True
    pnlres at gsnPanelYWhiteSpacePercent = 13       ; Add white space b/w
plots.                           pnlres at gsnPanelLabelBar           = True
 ; Turn on common labelbar
pnlres at lbLabelAutoStride          = True    ; Spacing of lbar labels.
                        pnlres at lbBoxMinorExtentF          = 0.13
    pnlres at gsnPanelSave               = True    ; Keep the plots in their
resized state                 pnlres at gsnFrame              = False ; Don't
advance the frame
 gsn_panel(wks,plot,(/3,2/),pnlres)           ; now draw as one plot
                           draw_panel_titles(wks,plot,"","NOUCM","","WUCM")
 frame(wks)


--Mary

On Fri, Sep 15, 2017 at 4:24 AM, swati shewale <shewaleswati16 at gmail.com>
wrote:

> Ok. Thanks. I will try to do it.
>
> On Fri, Sep 15, 2017 at 10:18 AM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Try to look in WRFUser.ncl.
>>
>> Make a back up or copy it to your directory to reference directly.
>>
>> Then, you can play with the settings that affect titles.  It isn't easy,
>> but I managed some changes a while back.
>>
>> Barry
>>
>> On Fri, Sep 15, 2017 at 7:02 AM, swati shewale <shewaleswati16 at gmail.com>
>> wrote:
>>
>>> Thanks a lot for suggestion. could you suggest resources for left, right
>>> and centre string as well.
>>>
>>> On Thu, Sep 14, 2017 at 9:03 PM, Adam Phillips <asphilli at ucar.edu>
>>> wrote:
>>>
>>>> The gsn*String resources can only be used within a gsn_csm_* plotting
>>>> function. If you are calling a WRF plotting function (wrf_contour for
>>>> example) gsnLeftString will be ignored. Note that some of the wrf plotting
>>>> routines allow the user to set a special resource to set a subtitle.
>>>> (Example: SubFieldTitle in wrf_contour)
>>>> Adam
>>>>
>>>> On Wed, Sep 13, 2017 at 9:53 PM, swati shewale <
>>>> shewaleswati16 at gmail.com> wrote:
>>>>
>>>>> I am handling WRF output so is it like gsn resources wont work as it
>>>>> works on regular netcdf file?
>>>>>
>>>>> On Thu, Sep 14, 2017 at 9:22 AM, swati shewale <
>>>>> shewaleswati16 at gmail.com> wrote:
>>>>>
>>>>>> yes, I came to know about it so I corrected it. still facing same
>>>>>> issue.
>>>>>>
>>>>>> On Wed, Sep 13, 2017 at 8:54 PM, Rick Brownrigg <brownrig at ucar.edu>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> You have a typo, that might be the source of the problem:   its gsnLeftString,
>>>>>>> not gsnleftString.
>>>>>>>
>>>>>>> Rick
>>>>>>>
>>>>>>> On Tue, Sep 12, 2017 at 10:12 PM, swati shewale <
>>>>>>> shewaleswati16 at gmail.com> wrote:
>>>>>>>
>>>>>>>> Hello All,
>>>>>>>>
>>>>>>>> I want to allocate left, right and centre string for each plot. I
>>>>>>>> tried to give it in t_res, it gives warning as follow
>>>>>>>>
>>>>>>>> warning:gsnleftString is not a valid resource in
>>>>>>>> panel_time_avg_contour at this time
>>>>>>>>
>>>>>>>> I am unable to get like where to put that resource...whether at
>>>>>>>> t_res, mpres, pnlres or pltres. attached herewith script along with plot.
>>>>>>>>
>>>>>>>> Thank you in advance. Any help 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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> ncl-talk at ucar.edu
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Adam Phillips
>>>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
>>>> www.cgd.ucar.edu/staff/asphilli/   303-497-1726 <(303)%20497-1726>
>>>>
>>>> <http://www.cgd.ucar.edu/staff/asphilli>
>>>>
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>
>
> _______________________________________________
> 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/20170921/70f4c792/attachment.html>


More information about the ncl-talk mailing list