HTBasic Help
×
Menu
Index

AXES

Draws x-y axes.
 
 AXES [x1 [,y1 [,x2 [,y2 [,x3 [,y3 [,major]]]]]]]
 
Where:
x1,y1 = numeric-expressions, x,y tick spacing
x2,y2 = numeric-expressions, x,y origin of axis
x3,y3 = numeric-expressions, rounded to integers, major tick counts (range 1 through 32767)
major = numeric-expression, rounded to an integer, major tick size
 
Usage:
AXES 5,5,0,100
AXES X,Y,Midx,Midy,Maxx/10,Maxy/10
 
Example:      AXES.BAS
 
Description:
The AXES statement draws X-Y axes. You may specify the tic spacing on each axis in WINDOW units by giving two arguments, one for the x tic spacing and one for the y tic spacing; the default 0,0 means don't draw ticks. You may then specify the axes origin in WINDOW units; the default is 0,0. Also, you may specify the number of ticks between major tick marks; the default is 1,1 meaning that every tick is major. Lastly, you may specify the major tick size in VIEWPORT units; the default is 2.
 
The axes extend across the soft-clip area and the tick marks are symmetric about the axes but are clipped by the soft-clip area. If the x or y axis is outside the clip area, then tick marks are drawn into the non-clip area. The axes and tick marks are drawn in the current line style and pen color. A major tick is placed at the axis origin. The minor tick marks are half the size of the major tick marks.
 
See Also: