Plotter Customisation

The plotter allows the user to change most properties such as text size and colour. The commands function and help asapplotter list all the possible commands that can be used with the plotter.

set_colors
Change the default colours used for line plotting. Colours can be given either by name, using the html standard (e.g. red, blue or hotpink), or hexadecimal code (e.g. for black #000000). If less colours are specified than lines plotted , the plotter cycles through the colours. Example:
ASAP> plotter.set_colors('red blue green')
ASAP> plotter.set_colors(`#0000 blue #FF00FF')

set_linestyles
Change the line styles used for plots. Allowable values are 'line', 'dashed', 'dotted', 'dashdot', 'dashdotdot' and 'dashdashdot. Example:
ASAP>plotter.set_linestyles('line dash cotted datshot.)
ASAP>plotter.set_font(size=10)

set_font
Change the font style and size. Example
ASAP>plotter.set_font(weight='bold')
ASAP>plotter.set_font(size=10)
ASAP>plotter.set_font(style='italic')

set_layout
Change the multi-panel layout, i.e. now many rows and columns
ASAP>plotter.set_layout(3,2)

set_legend
Set the position, size and optional value of the legend
ASAP>plotter.set_legend(fontsize=16)
ASAP>plotter.set_legend(mode=0) # ASAP chooses where to put the legend
ASAP>plotter.set_legend(mode=4) # Put legend on lower right
ASAP>plotter.set_legend(mode=-1) # No legend
ASAP>plotter.set_legend(mp=['RR','LL']) # Specify legend labels
ASAP>plotter.set_legend(mp=[r'$^{12}CO$',r'$^{13}CO$']) # Latex labels

set_title
Set the plot title. If multiple panels are plotted, multiple titles have to be specified
ASAP>plotter.set_title(`G323.12$-$1.79`)
ASAP>plotter.set_title([`SiO`, 'Methanol'], fontsize=18)

Malte Marquarding 2007-08-16