Difference: CDAxisSetAxisMargins (1 vs. 4)

Revision 42012-02-25 - JeanNeron

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="CDChartDirectorDesignerAPI"
>
>
META TOPICPARENT name="CDChartDirectorXYChartRoutines"
 

.AXIS SET AXIS MARGIN

This subroutine reserves margins at the end of the "current" axis

Revision 32011-11-09 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

.AXIS SET AXIS MARGIN

Line: 6 to 6
 

Usage:

Changed:
<
<
* Opt PASS         <top_margin>               FIELD            SHARE? N
* Opt PASS         <bottom_margin>            FIELD            SHARE? N
*     GOSUB    0CD .AXIS SET AXIS MARGIN

>
>
      PASS         <top_margin>               FIELD            SHARE? N
      PASS         <bottom_margin>            FIELD            SHARE? N
      GOSUB    0CD .AXIS SET AXIS MARGIN

 
    • Check for error
Changed:
<
<
* IF 0CD .AXIS SET AXIS MARGIN NE
>
>
IF 0CD .AXIS SET AXIS MARGIN NE
 

Description:

Revision 22011-11-09 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

.AXIS SET AXIS MARGIN

Line: 20 to 20
 If a parameter is not received or if the value received is blank, then the margin is cleared.

This is usually used to reserve space in the plot area. For example, if some margin is reserved at the top of the vertical y-axis, the top of the plot area will contain no data points. It is because this region would be outside the active range of the y-axis. If anything is put at the top of the plot area (such as a legend box or custom text), it will not overlap with the data points.

Added:
>
>
Note that you can also use .AXIS SET AXIS SCALE to reserve room on the axis.
 

Comments:

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

Revision 12011-11-09 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CDChartDirectorDesignerAPI"

.AXIS SET AXIS MARGIN

This subroutine reserves margins at the end of the "current" axis


Usage:

* Opt PASS         <top_margin>               FIELD            SHARE? N
* Opt PASS         <bottom_margin>            FIELD            SHARE? N
*     GOSUB    0CD .AXIS SET AXIS MARGIN
      *        Check for error
*     IF       0CD .AXIS SET AXIS MARGIN      NE

Description:

This subroutine reserves margins at the end of the "current" axis. You must have selected a "current" axis via .AXIS SET CURRENT before calling this routine.

If a parameter is not received or if the value received is blank, then the margin is cleared.

This is usually used to reserve space in the plot area. For example, if some margin is reserved at the top of the vertical y-axis, the top of the plot area will contain no data points. It is because this region would be outside the active range of the y-axis. If anything is put at the top of the plot area (such as a legend box or custom text), it will not overlap with the data points.

Comments:

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


<--/commentPlugin-->

-- JeanNeron - 2011-11-09

 
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