damaris.data.MeasurementResult
- class damaris.data.MeasurementResult(quantity_name: str)[source]
- __init__(quantity_name: str) None[source]
convenient accumulation and interface to plot functions
The dictionary must not contain anything but AccumulatedValue instances
Methods
__init__(quantity_name)convenient accumulation and interface to plot functions
clear()copy()fromkeys(iterable[, value])get(k[,d])get_errorplotdata()get_legend()Returns the legend of the plot (Dictionary)
get_lineplotdata()get_number_of_channels()Returns the number of channels in y
get_style()Returns a reference to plot-styles (dictionary)
get_text(index)Returns labels to be plotted (List)
get_title()Returns the title of the plot
get_xdata()sorted array of all dictionary entries without Accumulated Value objects with n==0
get_xlabel()Returns the label for the x-axis
get_xmax()Returns maximum of x
get_xmin()Returns minimun of x
get_xminpos()Returns smallest positive value of x
get_xydata()get_ydata([channel])y data (mean values); the channel argument is accepted for compatibility with the Drawable interface, MeasurementResult is single-channel
get_ylabel()Gets the label for the y-axis
get_ymax()Returns maximimum of y
get_ymin()Returns minimum of y
get_yminpos()Returns smallest positive value of y
items()keys()pop(k[,d])If key is not found, d is returned if given, otherwise KeyError is raised.
popitem()as a 2-tuple; but raise KeyError if D is empty.
set_legend(channel, value)Sets the legend of the plot
set_style(channel, value)Sets a channel to a certain plot-style
set_text(index, text)Sets labels to be plotted
set_title(title)Sets the title of the plot
set_xdata(pos, value)Sets a point in x
set_xlabel(label)Sets the label for the x-axis
set_xmax(xmax)Sets maximum of x
set_xmin(xmin)Sets minimum of x
set_ydata(channel, pos, value)Sets a point in y
set_ylabel(label)Sets the label for the y-axis
set_ymax(ymax)Sets maximum of y
set_ymin(ymin)Sets minimum of y
setdefault(k[,d])update([E, ]**F)If E present and has a .keys() method, does: for k in E.keys(): D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
uses_statistics()drawable interface method returns True
values()write_to_csv([destination, delimiter])writes the data to a file or to sys.stdout destination can be a file or a filename suitable for further processing
write_to_hdf(hdffile, where, name, title[, ...])