Difference: CDAxisSetTickDensity (1 vs. 3)

Revision 32012-02-25 - JeanNeron

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

.AXIS SET TICK DENSITY

This subroutine sets the distance in pixels between major ticks and minor ticks on the "current" axis.

Revision 22012-01-09 - JeanNeron

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

.AXIS SET TICK DENSITY

Line: 23 to 23
  <maj_tick_space> is the desired distance between two major ticks in pixels.
Changed:
<
<
<min_tick_space> the desired distance between two minor ticks in pixels.
>
>
<min_tick_space> the desired distance between two minor ticks in pixels. If you specify this parameter, you must specify a non blank value for the <maj_tick_space>. You can't specify the minor tick spacing unless you also specify the major tick spacing.
  Note that the actual tick density chosen in auto-scaling may not be exactly the same as the desired tick density. It is because Chart Director may have other constraints in choosing the ticks, such as the ticks and axis range should be neat numbers, and the axis must contain an integral number of ticks, etc. Chart Director may use a tick distance that is larger than suggested, but never smaller.

Revision 12011-11-10 - JeanNeron

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

.AXIS SET TICK DENSITY

This subroutine sets the distance in pixels between major ticks and minor ticks on the "current" axis.


Usage:

      PASS         <maj_tick_space>           FIELD            SHARE? N
      PASS         <min_tick_space>           FIELD            SHARE? N
      GOSUB    0CD .AXIS SET TICK DENSITY
      *        Check for error
      IF       0CD .AXIS SET TICK DENSITY     NE

Description:

This subroutine sets the distance in pixels between major ticks and minor ticks on 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 value is cleared and the default spacing will be used.

Tick density is the desired distance between two ticks in pixels. When Chart Director performs auto-scaling, it will decide how many ticks to put on the axis based on tick density.

<maj_tick_space> is the desired distance between two major ticks in pixels.

<min_tick_space> the desired distance between two minor ticks in pixels.

Note that the actual tick density chosen in auto-scaling may not be exactly the same as the desired tick density. It is because Chart Director may have other constraints in choosing the ticks, such as the ticks and axis range should be neat numbers, and the axis must contain an integral number of ticks, etc. Chart Director may use a tick distance that is larger than suggested, but never smaller.

Comments:

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


<--/commentPlugin-->

-- JeanNeron - 2011-11-10

 
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