An open API service indexing awesome lists of open source software.

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.

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