Tags:
create new tag
view all tags

.AXIS SET AXIS MODE

This subroutine sets the axis mode of the "current" axis to be INDENTED or DEFAULT.

Usage:

      PASS         <axis_mode>                FIELD            SHARE? N
      GOSUB    0CD .AXIS SET AXIS MODE
      *        Check for error
      IF       0CD .AXIS SET AXIS MODE        NE


Description:

This subroutine sets the axis mode of the "current" axis to be INDENTED or DEFAULT. You must have selected a "current" axis via.AXIS SET CURRENT before calling this routine.

<axis_mode> must be one of INDENTED, DEFAULT or blank. Blank is the same as DEFAULT.

Normally, the x-axis is automatically scaled so that x coordinate of first data point is at the beginning of the x-axis, and the x coordinate last data point is at the end of the axis. If a line layer is drawn, the line will span from the left border of the plot area to the right border of the plot area.

However, for bar layer, if the x-axis is scaled as above, half of the first bar and half of the last bar will be outside the plot area.

When the axis is "indented", some margins will be reserved at the ends of the axis, so that all data representation are within the plot area.

By default, "indented" mode is automatically used in x-axis for charts that contain bar layers.

This subroutine allows you to manually configure whether "indented" mode is used or not. One common usage is to align the x-axes in different charts. For example, suppose your chart contains both a bar chart and a line chart. The bar chart will be using "indented" mode x-axis, while the line chart will be using "non-indented" mode. If the two charts are on top of one another for ease of comparison (common for finance style charts), it is desirable that their x-axes should align. In this case, the setIndent method can be used to force the line chart to use indented mode x-axis.

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2011-11-09

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-02-25 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback