Thanks a lot David.
Mateus
2009/9/25 David Brown <dbrown_at_ucar.edu>:
> Hi Mateus,
>
> The problem is that, for historical reasons, the gsn_csm...map routines have
> 2 possible tickmark objects. When they were originally designed, tickmarks
> for maps had not been implemented, and therefore these routine create a
> tickmark object at the NCL level and attach them to the map. For backwards
> compatibility this feature was kept when the MapPlot tickmarks were
> implemented at the HLU (C) level. That is also why the map tickmark display
> mode defaults to "Never". You can choose one or the other of the tickmark
> object depending on your preference.
>
> If you want the NCL-level tickmarks just leave pmTickMarkDisplayMode at its
> default setting of "Never".
>
> Oh the other hand if you would rather have the built-in MapPlot tickmarks,
> after the call to
>
> mapaSULSUD = gsn_csm_map( wks, geral )
>
> you can do this:
>
> destroy(mapaSULSUD_at_tickmarks)
>
> -dave
>
>
> On Sep 25, 2009, at 5:31 PM, Mateus Teixeira wrote:
>
>> Dear NCL users,
>>
>> I'm trying to plot two maps. I turn off X bottom and Y left axes in
>> the first map and turn them on in the second. When I use
>>
>> pmTickMarkDisplayMode = "Always"
>>
>> I'm getting wrong tickmarks in the second plot. In some latitudes and
>> longitudes there are two labels, but a little displaced each other.
>> Please, see the script below:
>>
>>
>> wks = gsn_open_wks( "ps",
>> "mapaAmericaSul_Brazil" )
>>
>> geral = True
>> geral_at_gsnMaximize = True
>> geral_at_mpFillOn = True
>> geral_at_mpMonoFillColor = True
>> geral_at_mpFillColor = -1 ; transparente, poupa espaço
>> geral_at_mpDataSetName = "Earth..4"
>> geral_at_mpDataBaseVersion = "MediumRes"
>> geral_at_mpOutlineOn = True
>> geral_at_mpOutlineBoundarySets = "National"
>> geral_at_mpOutlineSpecifiers = (/"Brazil:states"/)
>>
>> geral_at_mpFillAreaSpecifiers = (/"Brazil:Rio Grande do Sul", \
>> "Brazil:Santa Catarina", \
>> "Brazil:Parana", \
>> "Brazil:Sao Paulo", \
>> "Brazil:Rio de Janeiro", \
>> "Brazil:Minas Gerais", \
>> "Brazil:Espirito Santo" /)
>> geral_at_mpSpecifiedFillColors =
>> (/"gray35","gray35","gray35","gray60", \
>> "gray60","gray60","gray60"/)
>>
>> geral_at_mpMinLonF = 270.
>> geral_at_mpMaxLonF = 330.
>> geral_at_mpMinLatF = -60.
>> geral_at_mpMaxLatF = 15.
>>
>> geral_at_pmTickMarkDisplayMode = "Always"
>> geral_at_tmYLLabelFontHeightF = 0.017
>> geral_at_tmXBOn = False
>> geral_at_tmYLOn = False
>>
>>
>> mapaAS = gsn_csm_map( wks, geral )
>>
>> ; SEGUNDO MAPA, ZOOM SOBRE AS REGIOES SUL E SUDESTE DO BRASIL
>> geral_at_gsnDraw = False
>> geral_at_gsnFrame = False
>> geral_at_mpMinLonF = 301.
>> geral_at_mpMaxLonF = 322.
>> geral_at_mpMinLatF = -40.
>> geral_at_mpMaxLatF = -13.
>> geral_at_tmXBOn = True
>> geral_at_tmYLOn = True
>>
>> mapaSULSUD = gsn_csm_map( wks, geral )
>>
>> nomeEstados =
>> (/"RS","SC","PR","SP","MG","RJ","ES"/)
>> localNomesX =
>> (/-53.5,-50.0,-52.0,-49.0,-44.0,-42.0,-39.5/)
>> localNomesY =
>> (/-29.5,-27.5,-25.0,-22.0,-18.0,-23.5,-20.5/)
>> textoRes = True
>> textoRes_at_txFontHeightF = 0.02
>>
>> nomesRegioes = gsn_add_text( wks, mapaSULSUD,
>> nomeEstados, \
>> localNomesX, localNomesY,
>> textoRes )
>>
>> draw(mapaSULSUD)
>> frame(wks)
>>
>> I couldn't understand what is happening. I can't see a source for this
>> error. The second plot is attached.
>>
>> 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/)
>>
>> <mapaAmericaSul_Brazil-1.png>_______________________________________________
>> 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-talkReceived on Fri Sep 25 2009 - 19:34:09 MDT
This archive was generated by hypermail 2.2.0 : Sun Sep 27 2009 - 11:32:26 MDT