Skip to content
Klaas Padeken edited this page Jul 31, 2018 · 5 revisions

Setup

Get rootpy

To use DukePlotALot you need to have www.rootpy.org/(rootpy), which you can obtain from:

git clone git://github.com/rootpy/rootpy.git

To install rootpy you then call

python setup.py install --user

and follow the instructions.

Set up your environment

For your everyday usage you need to set up CMSSW (to get a newer Matplotlib version) and set up the Plotter environment by calling:

    source Plotter/set_env.sh

This includes all library functions of DukePlotALot to the python path and can therefore called by every python program in this environment.

Includes

In your python script you now want to include:

    from DukePlotALot import *

Other helpfull functions that you might want to include for the histogram handling:

from plotlib import HistStorage, getColorList, getDictValue, HistStorageContainer
try:
    from collections import OrderedDict
except ImportError:
    from ordered import OrderedDict

from rootpy.plotting.views import ScaleView

To modify the style of plots you need to work with the style_container via the include of:

import style_class as sc