Cathryn,
I think you just need to set tmXBValues and tmXBLabels in Explicit
Mode. If you don't give the values (& labels) I think the plot tick
mark mode reverts to Automatic.
http://ngwww.ucar.edu/ngdoc/ng/ref/hlu/obj/TickMark.res.html
*tmXTMode*
This enumerated resource of type NhlTTickMarkMode
<http://ngwww.ucar.edu/ngdoc/ng/ref/hlu/obj/TickMark.obj.html#NhlTTickMarkMode>
determines the method for specifying the spacing of the ticks and
the contents of the labels along the top X Axis. It has three
possible settings:
|Automatic|:
Based on the values of /tmXTDataLeftF/ and /tmXTDataRightF/,
*TickMark* chooses a 'nice' spacing between the major tick
marks, such that the number of major ticks does not exceed the
value of /tmXTMaxTicks/. Labels are generated based on the
current settings of /tmSciNoteCutoff/, /tmXTAutoPrecision/,
/tmXTPrecision/, and /tmXTFormat/.
|Manual|:
Starting with the value /tmXTTickStartF/, *TickMark* sets major
tick marks at intervals separated by a distance of
/tmXTTickSpacingF/ until /tmXTTickEndF/ is exceeded. Of these
tick marks, only those that fall between /tmXTDataLeftF/ and
/tmXTDataRightF/ may appear along the top X Axis. If
/tmXTTickStartF/ and /tmXTTickEndF/ are not set, *TickMark*
issues an informational message and sets /tmXTTickStartF/ to the
minimum of /tmXTDataLeftF/ and /tmXTDataRightF/, and it sets
/tmXTTickEndF/ to the maximum of /tmXTDataLeftF/ and
/tmXTDataRightF/. If /tmXTTickSpacingF/ is not set, *TickMark*
issues a warning message and /tmXTMode/ reverts to |Automatic|
mode. Labels are generated based on the current settings of
/tmXTTickSpacingF/, /tmSciNoteCutoff/, /tmXTAutoPrecision/,
/tmXTPrecision/, and /tmXTFormat/.
|Explicit|:
*TickMark* uses the array resource /tmXTValues/ to determine the
coordinate positions of the tick marks. Of these tick marks,
only those that fall between /tmXTDataLeftF/ and
/tmXTDataRightF/ may appear along the top X Axis. If
/tmXTValues/ is not set, *TickMark* issues a warning message and
/tmXTMode/ reverts to |Automatic| mode. The corresponding
element of the string array resource /tmXTLabels/ determines the
label used for each tick specified by /tmXTValues/. If
/tmXTLabels/ is not set, *TickMark* issues a warning and outputs
no labels for the top X Axis. You may optionally also set the
array resource /tmXTMinorValues/ to specify the locations of
minor ticks along the axis.
This resource may be intercepted or disabled by:
*tmXBValues*
When /tmXBMode/ is set to |Explicit|, this resource specifies an
array of data locations at which major tick marks will be drawn. The
values must increase or decrease monotonically. If you do not set
/tmXBValues/ when in |Explicit| mode, *TickMark* issues a warning
and /tmXBMode/ reverts to |Automatic| mode.
When /tmXBMode/ is set to |Automatic| or |Manual|, you can retrieve
this resource to determine the values that *TickMark* has chosen for
the bottom X Axis major tick locations. Attempts to set the
resource, however, are ignored.
This resource may be intercepted or disabled by:
* *MapPlot*
<http://ngwww.ucar.edu/ngdoc/ng/ref/hlu/obj/MapPlot.obj.html#TickMark.res>
Default: NULL**
*tmXBLabels*
When /tmXBMode/ is set to |Explicit|, this resource specifies an
array of strings that correspond to the values in /tmXBValues/. Each
element of this resource is placed under the corresponding tick
location in /tmXBValues/. If a string array element is set to NULL,
no label will appear at the corresponding tick mark location. If you
do not set /tmXBLabels/ when in |Explicit| mode, *TickMark* issues a
warning and outputs no labels for the bottom X Axis.
When /tmXBMode/ is set to |Automatic| or |Manual|, you can retrieve
this resource to determine the strings that *TickMark* has chosen as
labels for the bottom X Axis major ticks marks. Attempts to set the
resource, however, are ignored.
This resource may be intercepted or disabled by:
* *MapPlot*
<http://ngwww.ucar.edu/ngdoc/ng/ref/hlu/obj/MapPlot.obj.html#TickMark.res>
Default: NULL
Adam Phillips wrote:
>Hi Cathy,
>
>I think you need to use a transformation resource called trXMaxF to do what you
>want. See:
>
>http://www.ncl.ucar.edu/Document/Graphics/Resources/tr.shtml#trXMaxF
>
>Adam
>
>
>
>>Delivered-To: asphilli@ucar.edu
>>Delivered-To: ncl-talk@ucar.edu
>>Date: Wed, 23 Mar 2005 14:35:17 -0500
>>From: Cathryn Meyer <cathryn.meyer@yale.edu>
>>To: ncl-talk@ucar.edu
>>MIME-Version: 1.0
>>Content-Transfer-Encoding: 8bit
>>User-Agent: Internet Messaging Program (IMP) 3.1
>>X-Originating-IP: 128.36.127.47
>>X-YaleITSMailFilter: Version 1.2b (attachment(s) not renamed)
>>X-Virus-Scanned: amavisd-new at ucar.edu
>>Subject: xy plot tickmark labels
>>X-BeenThere: ncl-talk@ucar.edu
>>X-Mailman-Version: 2.1.1
>>List-Id: NCAR Command Language User Group <ncl-talk.ucar.edu>
>>List-Unsubscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
>>
>>
><mailto:ncl-talk-request@ucar.edu?subject=unsubscribe>
>
>
>>List-Post: <mailto:ncl-talk@ucar.edu>
>>List-Help: <mailto:ncl-talk-request@ucar.edu?subject=help>
>>List-Subscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
>>
>>
><mailto:ncl-talk-request@ucar.edu?subject=subscribe>
>
>
>>X-Virus-Scanned: amavisd-new at ucar.edu
>>
>>Hello,
>>
>>I have made a 6-panel plot of relative humidity vs. pressure plots using
>>gsn_xy and gsn_panel. The first plot only has RH values from 0-80%,
>>however the other five have points ranging from 0-100%, therefore their
>>x axes range from 0-100. I have been trying to make the first plot's
>>axis go from 0-100 to match the others, however I have not had any luck
>>yet. I have played around with almost all of the tmXB resources, but
>>the x-axis scale does not change. Any thoughts? Below is what I've
>>been trying so far:
>>
>>--------------------------------------------------------------
>> resources@tmXBMode = "Manual" (I have also made this explicit)
>> resources@tmXBLabelsOn = True
>> resources@tmXBLabels = (/0,20,40,60,80,100/)
>> resources@tmXBTickEndF = 100.0
>> resources@tmXBTickStartF = 0.0
>> resources@tmXBDataRightF = 100.0
>> resources@tmXBDataLeftF = 0.0
>>---------------------------------------------------------
>>Also, tmXBDataRightF and tmXBDataLeftF are not valid resources, so they
>>have not helped.
>>
>>Thanks,
>>Cathy
>>
>>--
>>Cathryn Meyer
>>Department of Geology and Geophysics
>>Yale University
>>cathryn.meyer@yale.edu
>>(203)432-1959
>>_______________________________________________
>>ncl-talk mailing list
>>ncl-talk@ucar.edu
>>http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>-------------------------------------------------------------
>Adam Phillips email: asphilli@ucar.edu
>Climate and Global Dynamics Division tel: (303) 497-1726
>National Center for Atmospheric Research fax: (303) 497-1333
>P.O. Box 3000
>Boulder, CO 80307-3000 http://www.cgd.ucar.edu/~asphilli
>
>_______________________________________________
>ncl-talk mailing list
>ncl-talk@ucar.edu
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Mar 23 2005 - 15:30:44 MST