lhcb-matplotlibrc
lhcb-matplotlibrc copied to clipboard
A matplotlibrc that produces plots close to the official LHCb style.
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')