JMSL Chart Programmer's Guide
3D Drawing Elements >> AxisXYZ >> Axis Label  Previous Page  Contents  Next Page

Axis Label

The AxisLabel node controls the labeling of an axis. The drawing of this node is controlled by the Text Attributes.

Scientific Notation

If the values along an axis are large, scientific notation is more readable than a decimal format with many zeros. See java.text.DecimalFormat for details on number formatting patterns.

Date Labels

If the TextFormat attribute for an axis is an instance of DateFormat, then the axis is scaled and labeled as a date/time axis, instead of as a real axis.

Date information passed to the Date constructor must be a double number representing the number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT. This is used by the constructor for Date.

String Labels

Any array of strings can be used to label the tick marks using the setLabels(String[]) method. The setLabels(String[]) method sets the Number attribute to the number of strings



©  Visual Numerics, Inc.  All rights reserved.  Previous Page  Contents  Next Page