Program axlim man page
USAGE:
axlim [options]
#datamin{,|/}#datamax [#ydatamin{,|/}#ydatamax]
or
minmax
[options] | cut -flist | axlim
[options]
PURPOSE:
Devise good axis
intervals for labels and ticks from data minima and
maxima
Complies with output
format of minmax after appropriate field cut
(see examples below).
The data-min and -max string
is accepted gracefully; for instance you can use
the output from GMT minmax,
provided there are no blanks within the brackets
(./.gmtdefaults4 e.g.
D_FORMAT = %.12lg controls this).
A `/´ instead of a `,´
is always possible. This liberty, however,
doesn't apply in the options.
With a second argument for
ydata, returns rounded ranges with
equal width in both axes: xmin/xmax/ymin/ymax
(options -R[B] -XY)
and one for the ticks (option
-B); see examples.
OPTIONS:
-R
- Print for use in GMT range option.
-B
- Print for use in GMT ticks option.
-RB -BR
Is also possible. Defines order of printing.
Note that -p option has variants -pr and
-pb
Neither -R nor -B: print a light analysis, perferably in
debug mode.
-XY
- Together with {-R|-RB|-BR}: prints the
four range parameters of
equal width for xdata and ydata (and one string for ticks with B);
-Y
- like -XY but prints only
the ydata part.
-C
- Print for use in GMT makecpt -T option,
third value is tick interval.
Implicates -B for psscale -B
Is incompatible with option -XY and arguments for ydata,
thus they are ignored.
-rl#v
- Lower range limit: max(v,xmin)
-ru#v
- Upper range limit: min(v,xmax)
-s
- Return a symmetric range about 0.
-l
- Round for logarithmic axes
The ticks for this is a dull story: a1f3
-log | -dB
- convert values to 10log or dB, respectively.
-log seems currently defunct
-dBP
- input values are power (-dB : amplitude).
-rlog - round
logarithmic.
-L#m,#n
- Minimum and maximum number of labels requested.
Default 4,10
-T#x,#y
- Extend data range by x tick intervals down (y
up).
Default 0.0,0.0
-X#x,#y
- Extend result range by x steps down (y
up).
Default 0.0,0.0
-D#x,#y
- Extend data range by x ranges down (y up).
Default 0.0,0.0
-p<fmt> -
Format code to override the default G12.4
-pr<fmt> - ... only
for range
-pb<fmt> - ... only
for ticks
-t#i
- Force number of tick marks.
-f#f
- Force tick interval floating-point f
-f
- Suppress f-part of ticks string.
-a0
- Include zero in range (-b0 -e0: at begin or
end)
-ya0
- Include zero in the ydata range (-yb0 -ye0:
at begin or end)
-w#width - Make
range at least this wide (still buggy).
Another method for obtaining a square diagram is the
script ~/bin/qaxlim [-h]
ENVIRONMENT:
setenv AXLIM_DEBUG <c>
- prints diagnostics if c =/= `N´ or `n´ or
` ´
prints them to a file if index(<AXLIM_DEBUG,'/')
> 0
after setenv
AXLIM_DEBUG 'path/filename'
Read it: cat $AXLIM_DEBUG
EXAMPLES:
$ axlim -R -B -L4,8
-p1p,e12.4 1.9,1.9001
=>
a2.0000E-05f1.0000E-05
1.9000E+00/1.9001E+00
$ axlim -R -D0,1 `minmax
d/G1_b,v_130524-6d-60s.pdg | cut -f3`
=> 0.0000/0.6000E-01
$ axlim -RB -XY -D0,1 `minmax
d/G1_b,v_130524-6d-60s.pdg | cut -f2,3`
=>
0.0000/18.00/-8.970/9.030
a2.000f1.000
$ axlim -C -D0,1 `minmax
d/G1_b,v_130524-6d-60s.pdg | cut -f3`
=> 0.0000/0.6000E-01/0.1000E-01
$ axlim -XY -RB 0.1/1.33
-0.1/1.23
=>
-0.1000/1.500/-0.2000/1.400
a0.2000f0.1000