Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 631 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 631 Bytes

LHCb matplotlibrc

A matplotlibrc that produces plots close to the official LHCb style.

The following options need to be manually specified in your python script:

plt.xlabel(..., ha='right', x=1)
plt.ylabel(..., ha='right', y=1)
plt.legend(loc='best')
plt.minorticks_on()

In order to add a "LHCb Simulation" text box, use:

plt.text(x, y, 'LHCb Simulation', {'size': 28})

If you have multiple matplotlibrc files in one directory or want to load a matplotlibrc from a specific directory you can use the following code:

matplotlib.rc_file('path/to/my/specific/matplotlibrc_LHCb')