This appendix offers a few examples of creating different types of plots using Kappa. The applications highlighted here are display and contour for maps, and linplot and clinplot for spectra (See the Kappa manual for more details).
The plotting attributes for each of these applications is controlled in the same way. For full details of all the formatting options as well as setting up your graphics device, see the ‘Plotting Styles and Attributes’ section in the Kappa manual.
Ensure white is entry 0 and black in entry 1.
map.sdf
. Do draw axes and a border, but do not draw a title or a grid. The default cut parameters
for mode=scale
include all the data.
Depending on your default settings you may get a map like the one below.
Below is a copy of the style file (style.dat
) used to make Figure F.2.
$STARLINK_DIR//bin/kappa/
directory.
You can create your own colour scheme using the Kappa routine lutedit. See the Kappa manual for more details.
lut
option.
cube.sdf
at the position
=60.°87,
=0.°18.
Use existing style.dat
except override the text label size which is too big for these axes
labels.
or using xleft
and xright
.
In the example above, the additional option lmode
is included. This sets how the upper and lower limits
for the y-axis are defined. This example expands the minimum and maximum values by 15% of
the data range. In additional extended
, the available options are range
, percentile
and
sigma
.
noclear
option to keep the original
plot underneath. The formatting defaults to the last time linplot was run, but with the one-off temporary
change of setting the colour of the line to red. The plus sign means the change will not be remembered
next time linplot is run.
This example plots a grid of 54
pixels around =61.°06 and
=0.°15. Each spectrum has
a range of 10 to 30 km s.
Note the decimal points are necessary for the spectral limits, otherwise the spectrum would extend from
pixel co-ordinates 10 to 30. The specstyle
option allows you to format the spectral axes inside the main
plot. The formatting options are the usual plotting attributes. The flag reflabel
annotates the interior
spectral axes.
integ.sdf
in the first frame.
subinteg.sdf
, a cut-out of integ.sdf, in the second frame.
gdnames
.
gdset
to define a new graphics device for all your applications, you can add the
device
option to select a different one for just this command. In the example below the output
goes to a PostScript file called myplot.ps
. The option pscol_l
specifies landscape mode with
colour. Setting a name for your output PostScript file is optional; if left unset it will default to
pgplot.ps
.
mode=histogram
can be abbreviated all the way to mode=h
.