Plotting Module
The plotting class is the base for all visualisation helpers in AnalysisG.
It inherits from tools and notification and provides a rich set of
configurable fields for controlling histogram binning, colour, font, legend,
and axis parameters. The derived roc class (see ROC Curve Module) uses this base.
Class: plotting
Header: <plotting/plotting.h>
Inheritance: tools, notification
I/O Fields
Field |
Type |
Description |
|---|---|---|
|
|
Output file extension. Default |
|
|
Base output filename (without extension). Default |
|
|
Directory for saved figures. Default |
Binning / Range Fields
Field |
Type |
Description |
|---|---|---|
|
|
Lower bound of the x-axis. Default |
|
|
Lower bound of the y-axis. Default |
|
|
Upper bound of the x-axis. Default |
|
|
Upper bound of the y-axis. Default |
|
|
Number of x-axis bins. Default |
|
|
Number of y-axis bins. Default |
|
|
Variable-width x-bin edges (overrides |
|
|
Variable-width y-bin edges. |
|
|
Draw error bars. Default |
|
|
Use raw count instead of normalised density. Default |
Cosmetic / Style Fields
Field |
Type |
Description |
|---|---|---|
|
|
Plot style. Default |
|
|
Histogram title. Default |
|
|
y-axis label. Default |
|
|
x-axis label. Default |
|
|
Fill style ( |
|
|
Overflow handling ( |
|
|
Matplotlib marker style. Default |
|
|
Hatch pattern for filled histograms. Default |
|
|
Matplotlib line style. Default |
|
|
Single colour name/hex. Default |
|
|
Per-histogram colour list. Default |
|
|
Stack histograms. Default |
|
|
Normalise histogram to unit area. Default |
|
|
Logarithmic x-axis scale. Default |
|
|
Logarithmic y-axis scale. Default |
|
|
Line width in points. Default |
|
|
Error-bar cap size. Default |
|
|
Fill transparency (0–1). Default |
|
|
x-axis tick step ( |
|
|
y-axis tick step ( |
Font Fields
Field |
Type |
Description |
|---|---|---|
|
|
General font size in points. Default |
|
|
Axis label font size. Default |
|
|
Legend font size. Default |
|
|
Title font size. Default |
|
|
Render labels using LaTeX. Default |
Scaling Fields
Field |
Type |
Description |
|---|---|---|
|
|
Output image resolution (dots per inch). Default |
|
|
Figure width scaling factor. Default |
|
|
Figure height scaling factor. Default |
|
|
Automatically scale figure dimensions. Default |
Data / Weight Fields
Field |
Type |
Description |
|---|---|---|
|
|
x-axis data points. |
|
|
y-axis data points. |
|
|
Positive error on each y point. |
|
|
Negative error on each y point. |
|
|
Custom x-axis tick labels. |
|
|
Custom y-axis tick labels. |
|
|
Per-event histogram weights. |
|
|
Dataset cross-section in fb. Default |
|
|
Integrated luminosity in fb⁻¹. Default |
Public Methods
Signature |
Description |
|---|---|
|
Constructs the full output file path |
|
Returns the maximum value in the |
|
Returns the minimum value in the |
|
Returns the sum of the |
|
Computes Poisson error bars from |
|
Returns the arithmetic mean and standard deviation of data. |