Difference: CDAxisSyncYAxis (1 vs. 2)

Revision 22011-12-14 - JeanNeron

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

.AXIS SYNC Y AXIS

Revision 12011-12-12 - JeanNeron

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

.AXIS SYNC Y AXIS

This subroutine sets a linear formula to synchronize the secondary y-axis scale to the primary y-axis scale.


Usage:

      PASS         <slope>               FIELD            SHARE? N
      PASS         <intercept>            FIELD            SHARE? N
      GOSUB    0CD .AXIS SYNC Y AXIS
      *        Check for error
      IF       0CD .AXIS SYNC Y AXIS      NE

Description:

This subroutine sets a linear formula to synchronize the secondary y-axis scale to the primary y-axis scale.

This is usually used if the two y-axes represent the same measurement using different units. Examples including temperature in Celsius and in Fahrenheit, and length in meters and feet.

The formula is :
y2 = y1 * slope + intercept

Both parameters are optional, and if not received, <slope> defaults to 1 and <intercept> default to zero. To "un-synchronize" the 2 axes, pass a blank for <slope>. If neither parameter is received, this will simply duplicate the scale on both the primary and secondary axes.

Comments:

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


<--/commentPlugin-->

-- JeanNeron - 2011-12-12

 
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