class rootpy.plotting.views.StackView(*directories, **kwargs)[source]

Build a HistStack from the input histograms

The default draw option that histograms will use is “hist”.

One can override this for all histograms by passing a string. Individual behavior can be controlled by passing a list of draw options, corresponding to the input directories. In this case the option for all histograms must be specified.

The name and title of the HistStack is taken from the first histogram in the list.

Normally the histograms will be added to the stack in the order of the constructor. Optionally, one can add them in order of ascending integral by passing the kwarg sorted=True.


Merge the objects at path in all subdirectories