asclabel#

Purpose#

To set up character labels for the X and Y axes. NOTE: This function is for the deprecated PQG graphics.

Library#

pgraph

Format#

asclabel(xl, yl)#
Parameters:
  • xl (string or Nx1 character vector) – labels for the tick marks on the x-axis. Set to 0 if no character labels for this axis are desired.

  • yl (string or Mx1 character vector) – labels for the tick marks on the y-axis. Set to 0 if no character labels for this axis are desired.

Examples#

This illustrates how to label the x-axis with the months of the year:

library pgraph;
lab = { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC };
asclabel(lab, 0);

This will also work:

lab = "JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC";
asclabel(lab, 0);

If the string format is used, then escape characters may be embedded in the labels. For example, the following produces character labels that are multiples of \(\lambda\). The font Simgrma must be previously loaded in a fonts command.

fonts("simplex simgrma");
lab = "\2010.25\202l \2010.5\202l \2010.75\202l l";
asclabel(lab, 0);

Here, the “\202l” produces the “\(λ\)” symbol from Simgrma.

Source#

pgraph.src

See also

Functions xtics(), ytics(), scale(), scale3d(), fonts()