Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/niess/mplstyle-l3

A matplotlib style sheet with Large LaTeX Labels for publications
https://github.com/niess/mplstyle-l3

latex matplotlib-style-sheets

Last synced: 5 days ago
JSON representation

A matplotlib style sheet with Large LaTeX Labels for publications

Awesome Lists containing this project

README

        

# L3 matplotlib style sheet
( **L**arge **L**atex **L**abels )

## Description

The L3 matplotlib style sheet provides figures with enlarged labels using the
default LaTeX fonts. It is meant for publication written with LaTeX, such that:

1. The figures labels are easy to read.
2. The text style in figures is consistent with the core paper's text.

## Examples

![2d](examples/2d.png)

## Usage

In order to apply the style globally add the following lines to your python
file:

```Python
import matplotlib.pyplot as plt
plt.style.use("style/l3.mplstyle")
```
where the full path to [l3.mplstyle][l3] must be provided. Alternatively you
can also copy [l3.mplstyle][l3] to your `mpl_configdir/stylelib` folder, e.g.
`~/.config/matplotlib/stylelib` on Linux.

**Note** that temporary styling with a context manager doesn't seem to work
properly yet (as of matplotlib 2.1.0).

[l3]: style/l3.mplstyle