newNTuple(arrays, labels, name="", register=1)
arrays
is a tuple or list of numeric sequences (all the same length), and labels
is a tuple or list of the labels to be applied to each sequence.
addNTuple(nt, key="")
getDisplay()
getDisplays()
Each of the plotting functions can use either the hippo n-tuple or be passed sequences as arguments. The former type of functions has capitalization appropriate for proper names. For example,
Histogram(nt, xname, xlog=0, ylog=0, xrange=(), yrange=(), title="", pointRep="Column", oplot=0, color=None)
xname
column of the n-tuple nt
.
histogram(x, xname='x', xlog=0, ylog=0, xrange=(), yrange=(), title="", pointRep="Column", oplot=0, color=None)
x
, which can be any kind of sequence (e.g., tuple, list, or flat numarray) of floats or integers.Hereafter, we give only the signature and descriptions, when necessary, of the n-tuple versions of these plotting functions:
YPlot(nt, yname, xlog=0, ylog=0, xrange=(), yrange=(), title="", pointRep="Symbol", oplot=0, color=None)
Scatter(nt, xname, yname, xlog=0, ylog=0, xrange=(), yrange=(), title="", pointRep="Symbol", oplot=0, color=None)
XYPlot(nt, xname, yname, xerr=None, yerr=None, xlog=0, ylog=0, xrange=(), yrange=(), title="", pointRep="Symbol", oplot=0, color=None)
StripChart(nt, xname, yname, xlog=0, ylog=0, xrange=(), yrange=(), title="", pointRep="Line", oplot=0, color=None)
Profile(nt, xname, yname, xlog=0, ylog=0, xrange=(), yrange=(), pointRep="Symbol", title="", oplot=0, color=None)
XYHist(nt, xname, yname, xbinsize=0, ybinsize=0, xrange=(), yrange=(), xlog=0, ylog=0, Aitoff=0, title="", pointRep="ColorBox", oplot=0)
Contour(nt, xname, yname, xbinsize=0, ybinsize=0, xrange=(), yrange=(), xlog=0, ylog=0, Aitoff=0, title="", pointRep="Contour", oplot=0)
Image(nt, zlog=0, aspect=0, transform=None, title="")
nt
has only one column.
fitsImage(fits_image, zlog=0, aspect=0, transform=None, title="")
Image
, reading the data from the FITS file fits_image
. fits_image
can also be a FitsImage
object.
class FitsImage(file)
file
is the filename of a FITS image file. This is a thin wrapper to a pyfits object, providing a single column hippo n-tuple of the image data and a method, getKeyVal
, to access the primary image keyword values.
FitsNTuple(fitsFiles, extension=1, name="")
FitsNTuple.FitsNTuple
class, which reads in FITS files and creates a hippo n-tuple of the FITS columns and a FitsNTuple
object that has numarrays of each FITS column as attributes. fitsFiles
can either be the filename of a single FITS file or a tuple or list of FITS files, all having the same format.
class StaticHist(xrange=(-1, 1), xBinWidth = 0.1, title="", xlabel="", color=None)
class Static2DHist(xrange=(-1, 1), yrange=(-1, 1), xBinWidth=0.1, yBinWidth=0.1, title="", xlabel="", ylabel="")
setCut()
setCut
mode, the user must click on an empty part of the canvas.
dragCut()
resize(restore=None)
None
restore
argument is provided, then right clicking a display will restore its plot limits to the values it had when the display was created.
fitData(display, funcName)
"PowerLaw"
, to the dataRep in the specified display. It returns a tuple of dictionaries of parameter values and error estimates and the handle to the function itself: >>> (params, errors, func) = fitData(display, "PowerLaw") >>> print "%.2e +/- %.2e" % (params["Index"], errors["Index"]) -1.78e+00 +/- 5.93e-03
slopes()
hline(y=None)
y
, if it is given. If y
is not given, then the line will be drawn at the location given by a right-click on any display.
vline(x=None)
hline
.
pickData()
pickData
mode.
clear()
prompt(prompt=None)
setParam(target, value, func)
setParameters
method of hippo function objects and allows a single parameter to be set: >>> setParam("Index", -2.1, pl)
setFixed(targets, func)
setFixedFlags
method of hippo function objects, allowing the user to pass a tuple of parameter names that he/she wishes to fix: >>> setFixed(("Prefactor", "Index"), pl)