Plotting linecatalog

The plotter plot_lines function takes a line catalog as an argument and overlays the lines on the spectrum. Currently this only works when plotting in units of frequency (Hz, GHz etc). If a large line catalog has been loaded (e.g. JPL) it is highly recommended that you use the selection functions to narrow down the number of lines. By default the line catalog overlay is plotted assuming a line velocity of 0.0. This can be set using the doppler argument (in km/s). Each time plot_lines is called the new lines are added to any existing line catalog annotations. These are all removed after the next call to plotter.plot().

  ASAP>jpl = linecatalog('jpl.tbl')
  ASAP>jpl.set_frequency_limits(23,24,'GHz')
  ASAP>data.set_unit('GHz')            # Only works with freq axis currently
  ASAP>plotter.plot(data)
  ASAP>plotter.plot_lines(jpl)

  ASAP>plotter.plot()                  # Reset plotter
  ASAP>plotter.plot_lines(jpl,doppler=-10,location='Top') 
                             # On top with -10 km/s velocity



Malte Marquarding 2007-08-16