Axe2.ps
This function is used to define a plot window and set a
number of global variables. There are 3 variants identified by the
number of arguments passed on the stack. The most simple is variant 2:
one argument defining the user coordinate system, using default values
for the window size and position.The following variables are used (as default) or set by Axe2 depending on the variant used.
% Position and size of the plot window in paper coordinate % which can be modified before calling Axe2 with 0 or 1 argument. /Width 150 mm def /Height Width 2 div 3 sqrt mul def /Left 50 mm def /Bottom 30 mm def
% Axe2 called without arguments will set % the following dependant variables with the following code /Right Left Width add def /Top Bottom Height add def
% Edges of the plot window in user coordinates. These variables can be set % before calling Axe2 with 0 arguments. /Xmin 0 def /Xmax 1 def /Ymin 0 def /Ymax 0 def
|
|
|
return |
|
1 |
Axe2 |
|
No
arguments given in the stack; The values of the global variables will
be used to define the coordinates position and size of the plot window. |
2 |
array1 Axe2 |
|
One
argument on the stack: array1 must be an array of 4 real numbers defining
the boudary values of the window in user coordinates in the order [
Xmin Xmax Ymin Ymax ]. The default size and position of the plot window
are used (defined by /Bottom /Left /Width and /Height). |
3 |
array2 array1 Axe2 |
|
Two arguments on the stack: array1 same as above; array2 is a vector of 4 numbers assigned to /Left /Right /Bottom and /Top in that order in paper coordinates, i.e. matching the corresponding user's coordinates values in a1. In this case consistent values of /Width and /Height are calculated. |