[ncl-talk] TickMark resources
Laura Fowler
laura at ucar.edu
Mon Apr 15 12:49:34 MDT 2019
Hi Adam:
Thanks for the quick reply. I was actually looking at that example over the
week-end. I think that I misunderstood that res at tmXBValues were supposed to
be values of latitudes. I thought they referred to the indexes of the array
that contained the latitudes.
Thanks,
Laura
On Mon, Apr 15, 2019 at 10:22 AM Adam Phillips <asphilli at ucar.edu> wrote:
> Hi Laura,
> Take a look at the tickmark examples here:
> http://www.ncl.ucar.edu/Applications/tickmarks.shtml
> Specifically, see example #2.
>
> For example, try adding this to your script:
>
> res at tmXBMode = "Explicit"
> res at tmXBValues = (/-150,-100,-50,0,50/)
> res at tmXBLabels = (/"150W","100W',"50W","0E","50E"/)
> res at tmXBMinorValues = ispan(-150,90,10)
>
> Let ncl-talk know if you have any further questions.
> Adam
>
> On Sun, Apr 14, 2019 at 5:23 PM Laura Fowler <laura at ucar.edu> wrote:
>
>> Hello:
>>
>> I would really like to modify the major tickmarks of the bottom axis of
>> my longitude versus pressure cross sections (see plot1.png). On that plot,
>> the bottom tickmarks are between 150E and 90W spanning every 15 degrees. I
>> would like them to span between 150E and 90E but spanning every 10 degrees
>> instead.
>>
>> I have two questions:
>>
>> 1) The latitudes of the bottom axis start at:
>>
>> Variable: lon (subsection)
>>
>> Type: double
>>
>> Total Size: 4816 bytes
>>
>> 602 values
>>
>> Number of Dimensions: 1
>>
>> Dimensions and sizes: [lon | 602]
>>
>> Coordinates:
>>
>> lon: [149.9000091552734..270.1000061035156]
>>
>> Number Of Attributes: 2
>>
>> long_name : longitude
>>
>> units : degrees_east
>>
>> (0) 149.9000091552734
>>
>> (1) 150.1000061035156
>>
>> (2) 150.3000030517578
>>
>> (3) 150.5000152587891
>>
>> .
>>
>> .
>>
>> (597) 269.3000183105469
>>
>> (598) 269.5
>>
>> (599) 269.7000122070312
>>
>> (600) 269.9000244140625
>>
>> (601) 270.1000061035156
>>
>>
>>
>> so I am not sure which index is used to plot the major tickmarks (...,
>> 180, 135W, and 90W). How do I get the index of the major tickmarks that are
>> drawn?
>>
>>
>>
>> 2. I tried to use print(plot) to see how I could use "get values" but I
>> did not see any reference to tickmarks that could help me out.
>>
>>
>> Variable: plot
>>
>> Type: obj
>>
>> Total Size: 4 bytes
>>
>> 1 values
>>
>> Number of Dimensions: 1
>>
>> Dimensions and sizes: [1]
>>
>> Coordinates:
>>
>> Number Of Attributes: 2
>>
>> contour : rh.lon_press.new_contour contourPlotClass 11
>>
>> data : rh.lon_press.new_data scalarFieldClass 9
>>
>> (0) rh.lon_press.new_loglin logLinPlotClass 45
>>
>>
>>
>>
>> Is there an other way to do this? Help very much appreciated.
>>
>>
>> Thanks,
>>
>> Laura
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> !-------------------------------------------------------------------------------------------------------------
>> Laura D. Fowler
>>
>> Mesoscale and Microscale Meteorology Division (MMM)
>> National Center for Atmospheric Research
>> P.O. Box 3000, Boulder CO 80307-3000
>>
>> e-mail: laura at ucar.edu
>> phone: 303-497-1628
>>
>>
>> !-------------------------------------------------------------------------------------------------------------
>> _______________________________________________
>> 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
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
--
!-------------------------------------------------------------------------------------------------------------
Laura D. Fowler
Mesoscale and Microscale Meteorology Division (MMM)
National Center for Atmospheric Research
P.O. Box 3000, Boulder CO 80307-3000
e-mail: laura at ucar.edu
phone: 303-497-1628
!-------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190415/61303fe7/attachment.html>
More information about the ncl-talk
mailing list