Package madgraph :: Package various :: Module histograms
[hide private]
[frames] | no frames]

Module histograms

source code

Module for the handling of histograms, including Monte-Carlo error per bin and scale/PDF uncertainties.

Classes [hide private]
  histograms_PhysicsObjectList
A class to store lists of physics object.
  Bin
A class to store Bin related features and function.
  BinList
A class implementing features related to a list of Bins.
  Histogram
A mother class for all specific implementations of Histogram conventions
  HwU
A concrete implementation of an histogram plots using the HwU format for reading/writing histogram content.
  HwUList
A class implementing features related to a list of Hwu Histograms.
Functions [hide private]
 
plot_ratio_from_HWU(path, ax, hwu_variable, hwu_numerator, hwu_denominator, *args, **opts)
INPUT:
source code
 
plot_from_HWU(path, ax, hwu_variable, hwu_central, *args, **opts)
INPUT:
source code
 
fill_between_steps(x, y1, y2=0, h_align='right', ax=None, **kwargs)
Fills a hole in matplotlib: fill_between for step plots.
source code
Variables [hide private]
  root_path = '/Users/omattelaer/Documents/workspace/madgraph5/M...
  logger = logging.getLogger("internal.histograms")
  __package__ = 'madgraph.various'
Function Details [hide private]

plot_ratio_from_HWU(path, ax, hwu_variable, hwu_numerator, hwu_denominator, *args, **opts)

source code 

INPUT:

  • path can be a path to HwU or an HwUList instance
  • ax is the matplotlib frame where to do the plot
  • hwu_variable is the histograms to consider
  • hwu_numerator is the numerator of the ratio plot
  • hwu_denominator is the denominator of the ratio plot OUTPUT:
  • adding the curves to the plot
  • return the HwUList

plot_from_HWU(path, ax, hwu_variable, hwu_central, *args, **opts)

source code 

INPUT:

  • path can be a path to HwU or an HwUList instance
  • ax is the matplotlib frame where to do the plot
  • hwu_variable is the histograms to consider
  • hwu_central is the central curve to consider
  • hwu_error is the error band to consider (optional: Default is no band)
  • hwu_error_mode is how to compute the error band (optional) OUTPUT:
  • adding the curves to the plot
  • return the HwUList
  • return the line associated to the central (can be used to get the color)

fill_between_steps(x, y1, y2=0, h_align='right', ax=None, **kwargs)

source code 
Fills a hole in matplotlib: fill_between for step plots.
Parameters :
------------
x : array-like
    Array/vector of index values. These are assumed to be equally-spaced.
    If not, the result will probably look weird...
y1 : array-like
    Array/vector of values to be filled under.
y2 : array-Like
    Array/vector or bottom values for filled area. Default is 0.
**kwargs will be passed to the matplotlib fill_between() function.


Variables Details [hide private]

root_path

Value:
'/Users/omattelaer/Documents/workspace/madgraph5/MG5_aMC_v2_6_5/madgra\
ph'