Belle II Software development
|
Public Member Functions | |
def | __init__ (self, figure=None, axis=None, normed_to_all_entries=False, normed_to_bin_width=False, keep_first_binning=False, range_in_std=None) |
def | add (self, data, column, mask=None, weight_column=None, label=None) |
def | finish (self) |
Public Attributes | |
normed_to_all_entries | |
Normalize histograms before drawing them. | |
normed_to_bin_width | |
Normalize histograms before drawing them. | |
range_in_std | |
Show only a certain range in terms of standard deviations of the data. | |
ymin | |
size in x/y | |
ymax | |
size in x/y | |
xmin | |
size in x/y | |
xmax | |
size in x/y | |
keep_first_binning | |
Keep first binning if user wants so. | |
first_binning | |
first binning | |
x_axis_label | |
x axis label | |
Plots distribution of a quantity
Definition at line 584 of file plotting.py.
def __init__ | ( | self, | |
figure = None , |
|||
axis = None , |
|||
normed_to_all_entries = False , |
|||
normed_to_bin_width = False , |
|||
keep_first_binning = False , |
|||
range_in_std = None |
|||
) |
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 true if histograms should be normed before drawing @param keep_first_binning use the binning of the first distribution for further plots @param range_in_std show only the data in a windows around +- range_in_std * standard_deviation around the mean
Reimplemented from Plotter.
Definition at line 589 of file plotting.py.
def add | ( | self, | |
data, | |||
column, | |||
mask = None , |
|||
weight_column = None , |
|||
label = None |
|||
) |
Add a new distribution to the plots @param data pandas.DataFrame containing all data @param column which is used to calculate distribution histogram @param mask boolean numpy.array defining which events are used for the histogram @param weight_column column in data containing the weights for each event
Reimplemented from Plotter.
Definition at line 622 of file plotting.py.
def finish | ( | self | ) |
Sets limits, title, axis-labels and legend of the plot
Reimplemented from Plotter.
Definition at line 669 of file plotting.py.
first_binning |
first binning
Definition at line 618 of file plotting.py.
keep_first_binning |
Keep first binning if user wants so.
Definition at line 616 of file plotting.py.
normed_to_all_entries |
Normalize histograms before drawing them.
Definition at line 601 of file plotting.py.
normed_to_bin_width |
Normalize histograms before drawing them.
Definition at line 603 of file plotting.py.
range_in_std |
Show only a certain range in terms of standard deviations of the data.
Definition at line 605 of file plotting.py.
x_axis_label |
x axis label
Definition at line 620 of file plotting.py.
xmax |
size in x/y
Definition at line 614 of file plotting.py.
xmin |
size in x/y
Definition at line 612 of file plotting.py.
ymax |
size in x/y
Definition at line 610 of file plotting.py.
ymin |
size in x/y
Definition at line 608 of file plotting.py.