The axis control methods set the scaling/range procedure used for the creation of plots and the axis attributes. These attributes include the format and size of the numerical labels, the number of tick marks, and the placement of the axis. The naming (or text labeling) of the axis are set using the Title/Axis Label methods.
The CAMgraphicsProcess class keeps track of the range of values (both the ordinates and the abscissas) associated with a line plot. The scales used for subsequent plots and the drawing and labeling of plot axis are set by specifying the range of axis values.
These ranges are determined automatically ("autoscaling" on) or can be user specified. If autoscaling is turned on (the default), then before the creation of a line plot, the bounds for the values of the input data are determined and the axis ranges are based upon these bounds.
axisAutoScaleOn() |
Turns on autoscaling (default) |
|
Turns off autoscaling. |
|
Sets the region for plots to be [xmin,xmax]X[ymin,ymax] and turns off autoscaling. |
drawAxis() |
Draws the axis. |
|
Use Mx ticks for the x-axis and mx ticks for each x-axis sub-interval. Use Ny ticks for the y-axis and ny ticks for each y-axis sub-interval. |
|
Use Mx ticks for the x-axis and mx ticks for each x-axis sub-interval. |
|
Use Ny ticks for the y-axis and ny ticks for each y-axis sub-interval. |
|
Enable automatic drawing of x and y axis with each plot. |
|
Disable automatic drawing of the x and y axis. |
|
Enable automatic drawing of x-axis with each plot. |
|
Disable automatic drawing of the x-axis. |
|
Enable automatic drawing of y-axis with each plot. |
|
Disable automatic drawing of the y-axis. |
|
Enable numeric labelling of axis. |
|
Disable numeric labelling of axis. |
|
Enable numeric labelling of x-axis |
|
Disable numeric labelling of x-axis. |
|
Enable numeric labelling of y-axis |
|
Disable numeric labelling of y-axis. |
|
Sets the x-axis type to t. Default = CAMgraphicsProcess::PERIMETER. |
|
Sets the y-axis type to t. Default = CAMgraphicsProcess::PERIMETER. |
|
Set the axis intercepts to the point (x,y). (x,y) are coordinates with respect to the current axis range. |
|
Sets the x-axis intercept to y. |
|
Sets the y-axis intercept to x. |
|
Sets the axis color to Java Color class instance C. |
| Mx,mx,Ny,ny are of type int, x,y are of type double, and t is an GraphicsProcess axis type constant. | |
GraphicsProcess Axis Type Constants
CAMgraphicsProcess::GRID= 0 |
|
|
Axis Label (Numerical) Format Control
setAxisLabelType(t) |
Sets the label type to label type constant t. Default = CAMgraphicsProcess::FLOATING_POINT. |
|
Sets the width of a numerical label in characters. Default = 7. |
|
Sets the number of digits past the decimal point. Default = 2. |
|
Sets the size of the characters (fraction of viewing window) to d. Default = .03. |
|
Specification of (t,w,p) sets the type, width, and precision of the labels. |
| t is a CAMgraphicsProcess Axis Label type, w and p are of type int, and s is of type double. | |
Axis Label (Numerical) Type Constants
| CAMgraphicsProcess::FLOATING_POINT= 0 |
| CAMgraphicsProcess::SCIENTIFIC = 1 |