#!/usr/local/bin/perl require "axes.pl"; . . .
axes.plgifsize&gifsize(xmin, xmax, ymin, ymax, xmid,
ymid)
xmin, xmax are the minimum and maximum pixel
values in the x direction of the region you wish to control.
This region may be a "window" within the image.
ymin, ymax are the minimum and maximum pixel
values in the yof the region you wish to control.
This region may be a "window" within the image. Note that typically
computer graphics coordinates go "down", so the "minimum" has a lower
numerical value than the "maximum".
xmid, ymid are the pixel coodinates of
the user coordinate system.
gifsize before any other
axes.pl routines, except pssize.
You can determine the gif coordinates of a region in a gif by using
the middle mouse button in xv.
pssize&pssize(xmin, xmax, ymin, ymax)
xmin, xmax are the minimum and
maximum PostScript coordinate values in the x direction of the
region you wish to control. This region may be a "window" within the
image.
ymin, ymax the analogous values in the
"y" direction. Note that programs like xfig typically
scale the coordinate system so virtical coordinates go "down", so the
"minimum" has a lower numerical value than the "maximum".
pssize before any other
axes.pl routines, except gifsize.
sizetofit&sizetofit(xmax, ymax)
xmax, and ymax are the maximum
values of your data in the first quadrant. Note:Both
xmax and ymax must be positive.
.
gifsize>. The
routine may srhink the user region more than is necessary to accomodate
the input point to achieve better tick marks.
This routine requires that gifsize be called first.
pssize can be called after, but none of the coordinate
conversion routines involving PostScript coordinate will function
until pssize called.
u2p(px, py) = &u2p(ux, uy)
ux, and uy are the user coordinates
of the point.
px and py are the returned Postscript
coordinates.
p2u(ux, uy) = &p2u(px, py)
px, and py are the PostScript coordinates
of the point.
ux and uy are the returned user
coordinates.
u2g(gx, gy) = &u2g(ux, uy)
ux, and uy are the user coordinates
of the point.
gx and gy are the returned gif
coordinates.
g2u(ux, uy) = &g2u(gx, gy)
gx, and gy are the gif coordinates
of the point.
ux and uy are the returned user
coordinates.
p2g(gx, gy) = &p2g(px, py)
px, and py are the PostScript coordinates
of the point.
gx and gy are the returned gif
coordinates.
g2p(px, py) = &g2p(gx, gy)
gx, and gy are the gif coordinates
of the point.
px and py are the returned PostScript
coordinates.
xticks&xticks()This routine attempts to intelligently draw and label tick marks on the x-axis. You will probably end up editing this routine to meet your own specifications.
yticks&yticks()This routine attempts to intelligently draw and label tick marks on the y-axis. You will probably end up editing this routine to meet your own specifications.