[ncl-talk] Titles of X and Y axes .

Adam Phillips asphilli at ucar.edu
Thu Sep 18 09:34:14 MDT 2014


Hi Geeta,
1) tiYAxis and tiXAxis: You can set tiYAxisOffsetXF and tiXAxisOffsetYF. I
would try a value of -.017 for the tiYAxisOffsetXF resource, and a value of
.05 for the tiXAxisOffsetYF, but you will likely have to play with these
resources a bit.

To see examples of their use, go to the top of the Examples page, and click
on "resources" in the top sentence "List of tips, resources". (The page
will take a second to load because it is so long.) Then, search for
"tiXAxisOffsetYF".

2) Label bar label: You are specifying the following resources:
res at cnLevels            =(/0,1,10,30,50/)
res at lbLabelStrings =(/"0","1","10", "30","50"/)
res at lbLabelAlignment   = "BoxCenters"

Setting lbLabelAlignment to BoxCenters requires you to set one more label
than the number of contour levels. See example 14 here:
http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14

Looking at the plot you linked to I not sure that you really want to set
lbLabelAlignment = "BoxCenters".

3) Coloring the swatch path white: I think this is just a reflection of
your chosen cnLevels. Looking again at the linked plot they have white
colors all the way to say 0.8 (?). Try setting the following:
res at cnLevels = 0.8,10,20,30,50
res at lbLabelStrings = res at cnLevels

Hope that helps. If not, please respond to the ncl-talk email list.
Adam




On Thu, Sep 18, 2014 at 5:35 AM, Geeta Geeta <geetag54 at yahoo.com> wrote:

>  Hi.
> I am unable to write the Titles of X and Y axes  in the way I wish to. by
> default, it is overlapping the numbers on the X and Y axes (Fig Attached)
> I am also attaching my script.
> Following res I am using for that.
> res at tiMainString=fili
> res at tiXAxisString = "Longitude"
> res at tiYAxisString = "Latitude"
> res at gsnLeftString=var_name+var_unit
> ; Changing the font Height of Title rnd X and Y axis esources-----
> res at tiMainFontHeightF = 0.02
> res at tiYAxisFontHeightF = 0.02
> res at tiXAxisFontHeightF = 0.02
>
>
> Can I change location of X/Y Titles??. Bring it close to Axes??.
>
> 2.Secondly, I am getting the string Label_5. Donot know why I am getting
> that.
>
> 3. How can I change the color of the Swath(Path) to White as shown in the
> Fig Below.
>
> ftp://disc2.nascom.nasa.gov/ftp/data/s4pa/TRMM_L2/2A12_BR.6/2009/135/2A12_BR.090515.65505.6.PNG
>
> Pls suggest.
>
> Geeta.
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Division, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140918/15c3e4d2/attachment.html 


More information about the ncl-talk mailing list