WPAG (Define page limits from the window)
This command defines the limits of the plot page based on the current window size. It is intended to be used after defining a window size based on option 2 of the WDEF command. This allows you to determine the size of a plot based on the data contained in the data buffer. This is particularly useful when plotting line data profiles on a routine basis.
Command Syntax:
WPAG ml,mb,mr,mt |
Command Parameters:
ml,mb,mr,mt |
the left, bottom, right and top margins in map units. These are the distances from the edges of the currently defined map window to the edge of the drawing area. |
Example
The following example reads data from an XYZ file and scales the data window to plot the data. It uses option 2 of the WDEF command to cause the window limits to be adjusted to fit the data based on a horizontal scale of 100 units per plot centimetre. Note that because the vertical scale was not specified in the WDEF command, a vertical scale is determined so that the Z limits (swapped into Y) of the data will be plotted within the 15 centimetre Y window.
DXYZ L100 /read line 100
DSWP X /put maximum of X or Y into X
DSWP Z,Y /swap Z into Y buffer
WIND 10,10,5,30,20 /define a plotting window
WDEF ,,,,100,,2 /map window to X,Y buffers
/Option 2 - maximum window
/limits adjusted to the data
WIND ,,,,,1.0 /re-define window margin
WPAG 4,14,4,4 /redfine page limits
LINA 0 /plot buffer as world coord
RECT /box around window
RECT /box around plot
See Also:
Got a question? Visit the Seequent forums or Seequent support
© 2024 Seequent, The Bentley Subsurface Company
Privacy | Terms of Use