Simple ADMIT plotter

  • keeps track of figure numbers
  • plotmode (interactive, with saving before or after interaction etc.) -1 no saving files, no interactive screens +0 +1 +2
  • simple parser of extra layout commands on top of general style
  • plotter, scatter or histogram

line x0 y0 x1 y1 ... point x0 y0 ...

class admit.util.aplot.APlot(pmode=None, figno=None)

simple admit plotter

Attributes

pmode (int) Plotting Mode
figno (int) Figure number.
ptype (string) png, pdf. Currently hardcoded as png.

Methods

figure([figno])
hisplot(x[, title, figname, xlab, range, ...]) simple histogram of one or more columns
histogram(x[, title, figname, xlab, range, bins]) simple histogram of one or more columns
map1(data[, title, figname, xlab, range, ...]) display map; horrible hack, the caller should call np.rot90() since
parse(plt, fig, ax, lines)
plotmode([pmode])
plotter(x, y[, title, figname, xlab, ylab, ...]) simple plotter of multiple columns against one column
plotter2(x, y[, title, figname, xlab, ylab, ...]) simple plotter of multiple columns against one column
scatter(x, y[, title, figname, xlab, ylab, ...]) simple plotter of multiple columns against one column
show()
figno = 0
figure(figno=1)
hisplot(x, title=None, figname=None, xlab=None, range=None, bins=80, gauss=None)

simple histogram of one or more columns

histogram(x, title=None, figname=None, xlab=None, range=None, bins=80)

simple histogram of one or more columns

map1(data, title=None, figname=None, xlab=None, range=None, contours=None, cmap='hot')

display map; horrible hack, the caller should call np.rot90() since casa and numpy do not have their axes in the same order. We cannot call casa here, since aplot needs to stay casa agnostic. To be resolved.

parse(plt, fig, ax, lines)
plotmode(pmode=0)
plotter(x, y, title=None, figname=None, xlab=None, ylab=None, yrange=None)

simple plotter of multiple columns against one column

plotter2(x, y, title=None, figname=None, xlab=None, ylab=None, segments=None)

simple plotter of multiple columns against one column stolen from atable, allowing some extra bars in the plot for line_id

pmode = 1
ptype = 'png'
scatter(x, y, title=None, figname=None, xlab=None, ylab=None, c=None, s=None, cmds=None)

simple plotter of multiple columns against one column

show()

This Page