Skip to content

kdungs/lhcb-matplotlibrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published