![XYZ].Range
Corresponding Plot Keyword:
[XYZ]Range The input axis range, a two-element vector. The first element is the axis minimum, and the second is the maximum. Set this field, or use the corresponding keyword parameter, to specify the data range to plot. Because the endpoints of axes are rounded, the final axis range may not be equal to this input range. The field ![XYZ].Range contains the axis range used for the plot.
Set both elements equal to 0 for automatic axis ranges:
!X.Range = 0
Example
To force the x-axis to run from 5.5 to 8.3:
!X.Range = [5.5, 8.3]
PLOT, INDGEN(15)
Alternatively, by using keywords:
PLOT, INDGEN(15), XRange=[5.5, 8.3]
Note that even though the range was set to (5.5, 8.3), the resulting plot has a range of (5.5, 8.5), because of the axis rounding. To inhibit rounding, set !X.Style to 1.
Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.