Dear Adam,
Thank you for your guidance. I appreciate that. After several iterations and examining the label resources, I was able to get the labels plotted using the following lines:
...
res@tiMainString = "Relative Humidity" ; title
res@tiMainFontHeightF = 0.02
res@tiMainOffsetYF = -0.01
res@tiMainFontQuality = "High"
res@tiMainFontThicknessF = 0.5
res@tiMainFont = 25
res@gsnCenterString = times(it)
res@gsnCenterStringFontHeightF = 0.018
res@gsnLeftString = "" ; set left subtitle
res@gsnRightString = "" ; set right subtitle
...
I am attaching the final figure for your information. With regards,
Kemal.
-----Original Message-----
From: Adam Phillips [mailto:asphilli@ucar.edu]
Sent: Wednesday, September 07, 2011 3:08 PM
To: Gurer, Kemal@ARB
Subject: Re: Problemin creating title using time
Hi Kemal,
You can certainly set the following:
res@gsnCenterString = times(it)
res@tiMainString = "Relative Humidity"
Also, you are setting vpWidthF and vpHeightF, which for a map projection
plot will get ignored unless you also set
res@mpShapeMode = "FreeAspect"
Not that setting that will stretch/distort the map projection based on
the sizes you set via vpWidthF/vpHeightF. Most people do not want to do
this.
Anyway, for what it's worth.. Adam
On 09/07/2011 04:01 PM, Gurer, Kemal@ARB wrote:
> You were right Adam. Thank you very much. Your solution fixed the problem. The new graphics is attached for your information. Now I need to ponder why this is the case, and still I need to put a title in addition to the time as a reference. With regards.
>
> Kemal.
>
> -----Original Message-----
> From: Adam Phillips [mailto:asphilli@ucar.edu]
> Sent: Wednesday, September 07, 2011 2:53 PM
> To: Gurer, Kemal@ARB
> Subject: Re: Problemin creating title using time
>
> Hi Kemal,
> I think my theory was right.. Try setting the resources I suggested and
> let the group know if that doesn't fix things.. Adam
>
> On 09/07/2011 03:49 PM, Gurer, Kemal@ARB wrote:
>> You are right. My mistake. Here is attached.
>>
>> -----Original Message-----
>> From: ncl-talk-bounces@ucar.edu [mailto:ncl-talk-bounces@ucar.edu] On Behalf Of Adam Phillips
>> Sent: Wednesday, September 07, 2011 2:46 PM
>> To: ncl-talk@ucar.edu
>> Subject: Re: Problemin creating title using time
>>
>> Hi Kemal,
>> Without seeing the plot I cannot know for sure, but looking at your
>> script I would venture to guess that one of the following resources:
>> gsnCenterString,gsnLeftString,gsnRightString, is being automatically set
>> based on an attribute attached to your tmp array.
>>
>> Try setting these resources:
>> res@tiMainString = times(it) ; title
>> res@gsnLeftString = "" ; set left subtitle
>> res@gsnRightString = "" ; set right subtitle
>> res@gsnCenterString = "" ; set center subtitle
>>
>> and let ncl-talk know if that doesn't fix the problem...
>> Adam
>>
>> On 09/07/2011 03:37 PM, Gurer, Kemal@ARB wrote:
>>> Hi,
>>>
>>> I am trying to put the time as title in each frame of relative humidity
>>> that I am plotting, but cannot place it on the graph. It seems that a
>>> default title that comes from the calculation of relative humidity
>>> overrides the title that I am trying to construct using time. Could you
>>> help me point out where the problem is in the attached ncl script? Thank
>>> you for your support.
>>>
>>> Kemal.
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
-- ______________________________________________________________ Adam Phillips asphilli@ucar.edu NCAR/Climate and Global Dynamics Division (303) 497-1726 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Mon Sep 12 2011 - 13:37:01 MDT