z#

select filter line style

SYNOPSIS

z#

DESCRIPTION

the width or color of the lines drawn using certain graphics filters. For #,enter an integer greater than or equal to zero.

The style of line associated with each number is filter dependent. Some filters only support one line style.

C-PLOT itself doesn't distinguish among pen numbers (although pen numbers greater than 1000 are ignored with the p# command used to select the pen-plotter pen). The number entered with the z# command is passed on to a graphics filter to be used as an argument to the filter's sel_pen() routine. Not all pen numbers will be functional on all filters.

The following table shows the recommended correspondence between pen number and attribute:

0-999 drawing colors
1000-1999 white-fill fill colors
2000-2999 black-fill fill colors
3000-3999 background colors
4000-4999 line widths
5000-5999 symbol outline widths
9000-9999 flags
9100-9900 filter-dependent flags

The colors associated with pen numbers 1000-3999 modulus 1000 are the same as the colors associated with pen numbers 0-999.

The following 9000-series flags have been defined:

9001 turns symbol filling on
9002 turns symbol filling off
9003 turns black-filled symbol outlines on
9004 turns black-filled symbol outlines off
9999 resets all attributes to startup default values

When symbol-filling is on, the interior of the symbols is painted solidly with the fill color. When off, white-filled symbols show through what is underneath and black-filled symbols are colored by drawing a grid of lines. The startup default is for symbol-filling to be on.

The white-filled symbols are those selected with the sy command using symbol codes 0, 1, 2, 3, 8, 12, 14-28.The black-filled symbols have symbol codes 4, 5, 6, 7, 10, 11 and 13.White-filled symbols are always outlined by the current line color. Black-filled symbols are outlined with the current background color or not at all if the no-outline flag has been selected. The startup default is for black-filled symbol outlines to be drawn.

The following pen color assignments are suggested for the first 10 pens:

  • 0 - background (normally white or black)
  • 1 - foreground (normally black or white)
  • 2 - blue
  • 3 - red
  • 4 - green
  • 5 - yellow
  • 6 - cyan
  • 7 - magenta
  • 8 - white
  • 9 - black

Pens 0, 1000, 2000 and 3000 track the background color assigned with pens 3002-3999. By drawing with pen 0, you can erase previously drawn portions of the plots. Pens 1, 1001, 2001 and 3001 track the foreground color assigned with pens 10-999.

Line-width values are interpreted in C-PLOT basic units, where there are 40 basic units in one C-PLOT millimeter. A line width of zero should select the thinnest line available on a device.

Finally, when selecting one or more line styles as part of a string of plotting commands, insert the numbers in the string rather than including them as arguments. For instance, z2alt1p uses color 2 to draw the axes, labels and title, and color 1 to draw the points.

SEE ALSO

sy p# colors