Belle II Software light-2406-ragdoll
|
Public Member Functions | |
def | __init__ (self, figure=None, axis=None, normed=False, shift_to_zero=False) |
def | add (self, data, column, minuend_mask, subtrahend_mask, weight_column=None, label=None) |
def | finish (self, line_color='black') |
Public Attributes | |
normed | |
Minuend and subtrahend are normed before comparing them if this is true. | |
shift_to_zero | |
Mean difference is shifted to zero (removes constant offset) if this is true. | |
ymin | |
min y value | |
ymax | |
Maximum y value. | |
xmax | |
Maximum x value. | |
x_axis_label | |
Label on x axis. | |
Plots the difference between two histograms
Definition at line 769 of file plotting.py.
def __init__ | ( | self, | |
figure = None , |
|||
axis = None , |
|||
normed = False , |
|||
shift_to_zero = False |
|||
) |
Creates a new figure and axis if None is given, sets the default plot parameters @param figure default draw figure which is used @param axis default draw axis which is used @param normed normalize minuend and subtrahend before comparing them @param shift_to_zero mean difference is shifted to zero, to remove constant offset due to e.g. different sample sizes
Reimplemented from Plotter.
Definition at line 786 of file plotting.py.
def add | ( | self, | |
data, | |||
column, | |||
minuend_mask, | |||
subtrahend_mask, | |||
weight_column = None , |
|||
label = None |
|||
) |
Add a new difference plot @param data pandas.DataFrame containing all data @param column which is used to calculate distribution histogram @param minuend_mask boolean numpy.array defining which events are for the minuend histogram @param subtrahend_mask boolean numpy.array defining which events are for the subtrahend histogram @param weight_column column in data containing the weights for each event @param label label for the legend if None, the column name is used
Reimplemented from Plotter.
Definition at line 804 of file plotting.py.
def finish | ( | self, | |
line_color = 'black' |
|||
) |
Sets limits, title, axis-labels and legend of the plot
Reimplemented from Plotter.
Definition at line 842 of file plotting.py.
normed |
Minuend and subtrahend are normed before comparing them if this is true.
Definition at line 795 of file plotting.py.
shift_to_zero |
Mean difference is shifted to zero (removes constant offset) if this is true.
Definition at line 796 of file plotting.py.
x_axis_label |
Label on x axis.
Definition at line 839 of file plotting.py.
xmax |
Maximum x value.
Definition at line 829 of file plotting.py.
ymax |
Maximum y value.
Definition at line 799 of file plotting.py.
ymin |
min y value
Definition at line 798 of file plotting.py.