Tags:
create new tag
view all tags

.AXIS SET LBL OFFSET

This subroutine sets the offset of the labels for the the "current" axis.


Usage:

      PASS         <lbl_offset>               FIELD            SHARE? N
      GOSUB    0CD .AXIS SET LBL OFFSET
      *        Check for error
      IF       0CD .AXIS SET LBL OFFSET       NE


Description:

This subroutine sets the offset of the labels for the the "current" axis. This can be used for axis labels you added via .AXIS LABEL ADD NEXT as well as axis labels that are added automatically by Chart Director (ie, the Y-Axis labels).

If the parameter is not received or if the value received is blank, then the value is cleared and the default offset will be used.

The <lbl_offset> if specified, must be in the range 0.01 to 999.99.

By default, the labels are center aligned with the ticks. This subroutine is commonly used to shift the labels to put them in between the ticks.

For example, if our X-axis has 5 labels, Monday to Friday, and we use an offset of 1, then Monday will be blank, the Monday label will be under Tuesday's data, Tuesdays' label will be under Wednesdays data, etc. An offset of .5 will put the labels between the ticks. Also see .AXIS SET TICK OFFSET to offset the tick marks instead of the labels.

Comments:

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


-- JeanNeron - 2011-11-11

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 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