Re: Remove "Pressure level" label

From: Mateus Teixeira <mateus.teixeira_at_nyahnyahspammersnyahnyah>
Date: Sat Nov 21 2009 - 14:58:13 MST

Mary and Dennis,

Thanks, it works now.

I think I was doing something wrong. Sorry for the mess!

Mateus

2009/11/21 Mary Haley <haley@ucar.edu>

> Mateus,
>
> The "set_pres_hgt_axes" is an internal routine used by gsn_csm_pres_hgt, so
> yes, commenting this line should have worked. Are you loading your modified
> copy of this file, and not the installed version?
>
> Also, you can try setting:
>
> res@tiYAxisString = "whatever"
>
> in your own script to change this value. The "height" label doesn't have
> the same ability to be changed unfortunately, so the method Dennis suggested
> below should work.
>
> --Mary
>
> On Nov 20, 2009, at 9:56 PM, Mateus Teixeira wrote:
>
> Hi Dennis,
>
> I have tried it but without success.
>
> I have found the "Pressure" string in other CSM function:
> set_pres_hgt_axes, but not in gsn_csm_pres_hgt.
>
> Since I saw that gsn_csm_pres_hgt called set_pres_hgt_axes, I thought
> commenting the line
>
> set_attr(res,"tiYAxisString","Pressure (mb)")
>
> will prevent gsn_csm_pres_hgt to plot "Pressure levels" in the left axis,
> but not.
>
> The string "Pressure levels" still appears at the graphic.
>
> I couldn't find the source of that string.
>
> I'm using NCL 5.1.0 .
>
>
> Mateus
>
>
>
>
> 2009/11/21 Dennis Shea <shea@ucar.edu>
>
>> A crude approach but .....
>>
>> You can always extract the "gsn_csm_pres_height"
>> code from "gsn_csm.ncl" to your own directory, look for:
>>
>> "Pressure"
>>
>> and
>>
>> "txString" : "Height (km)"
>>
>> Then delete the appropriate line andcreate
>>
>> "gsn_csm_pres_height_mateus"
>>
>>
>> Good luck
>>
>> Mateus Teixeira wrote:
>>
>>> Dear NCL users,
>>>
>>> Is there a way to remove the "Pressure levels" in the left axis produced
>>> in a plot generated by gsn_csm_pres_hgt?
>>>
>>> I have tried to apply the same method used to remove "height" label in
>>> the right axis changing
>>>
>>> index = ind(NhlName(am_ids).eq."right_axis")
>>>
>>> by
>>>
>>> index = ind(NhlName(am_ids).eq."left_axis")
>>>
>>> but it doesn't work.
>>>
>>> I also have tried to set tiYAxisOn to False and tiYAxisString to "", but
>>> any works.
>>>
>>>
>>> Best regards,
>>>
>>>
>>> --
>>> Mateus da Silva Teixeira
>>> Meteorologista
>>> Instituto de Pesquisas Meteorológicas - IPMet
>>> Universidade Estadual Paulista - UNESP
>>> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
>>> Bauru - SP - Brasil
>>> Fone: +55 14 3103-6030 / fax: 3203-3649
>>>
>>> Registered Linux User #466740 (http://counter.li.org/)
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>
>
> --
> Mateus da Silva Teixeira
> Meteorologista
> Instituto de Pesquisas Meteorológicas - IPMet
> Universidade Estadual Paulista - UNESP
> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
> Bauru - SP - Brasil
> Fone: +55 14 3103-6030 / fax: 3203-3649
>
> Registered Linux User #466740 (http://counter.li.org/)
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>

-- 
Mateus da Silva Teixeira
Meteorologista
Instituto de Pesquisas Meteorológicas - IPMet
Universidade Estadual Paulista - UNESP
Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
Bauru - SP - Brasil
Fone: +55 14 3103-6030 / fax: 3203-3649
Registered Linux User #466740 (http://counter.li.org/)

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Nov 21 14:58:31 2009

This archive was generated by hypermail 2.1.8 : Mon Nov 23 2009 - 12:24:01 MST