[Top] [Prev] [Next] [Bottom]

4.2 Scaling and Grid Lines

4.2.1 logxy: Set Linear/Log Axis Scaling

Calling Sequence

logxy( xflag[, yflag] )

Description

logxy sets the linear/log axis scaling flags for the current coordinate system. xflag and yflag may be 0 to select linear scaling, or 1 to select log scaling. yflag may be omitted (but not xflag).

4.2.2 gridxy: Specify Grid Lines

Calling Sequence

gridxy( flag )
gridxy( xflag, yflag )

Description

Turns on or off grid lines according to flag. In the first form, both the x and y axes are affected. In the second form, xflag and yflag may differ to have different grid options for the two axes. In either case, a flag value of 0 means no grid lines (the default), a value of 1 means grid lines at all major ticks (the level of ticks which get grid lines can be set in the style sheet), and a flag value of 2 means that the coordinate origin only will get a grid line. In styles with multiple coordinate systems, only the current coordinate system is affected. The keywords can be used to affect the style of the grid lines.

You can also turn the ticks off entirely. (You might want to do this to plot your own custom set of tick marks when the automatic tick generating machinery will never give the ticks you want. For example a latitude axis in degrees might reasonably be labeled "0, 30, 60, 90", but the automatic machinery considers 3 an "ugly" number - only 1, 2, and 5 are "pretty" - and cannot make the required scale. In this case, you can turn off the automatic ticks and labels, and use plsys, pldj, and plt to generate your own.)

To fiddle with the tick flags in this general manner, set the 0x200 bit of flag (or xflag or yflag), and "or-in" the 0x1ff bits however you wish. The meaning of the various flags is described in the "work.gs" Gist style sheet. Additionally, you can use the 0x400 bit to turn on or off the frame drawn around the viewport. Here are some examples:

gridxy(0x233) work.gs default setting
gridxy(0, 0x200) like work.gs, but no y-axis ticks or labels
gridxy(0, 0x231) like work.gs, but no y-axis ticks on right
gridxy(0x62b) boxed.gs default setting


[Top] [Prev] [Next] [Bottom]

support@icf.llnl.gov
Copyright © 1997,Regents of the University of California. All rights reserved.