https://github.com/kdungs/lhcb-matplotlibrc
A matplotlibrc that produces plots close to the official LHCb style.
https://github.com/kdungs/lhcb-matplotlibrc
cern lhcb
Last synced: about 2 months ago
JSON representation
A matplotlibrc that produces plots close to the official LHCb style.
- Host: GitHub
- URL: https://github.com/kdungs/lhcb-matplotlibrc
- Owner: kdungs
- License: mit
- Created: 2014-04-01T09:06:51.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-01T10:56:47.000Z (about 11 years ago)
- Last Synced: 2025-02-08T07:25:55.314Z (3 months ago)
- Topics: cern, lhcb
- Homepage:
- Size: 145 KB
- Stars: 16
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```python
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:
```python
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:```python
matplotlib.rc_file('path/to/my/specific/matplotlibrc_LHCb')
```