Matplotlib template for SuperMongo style
Project description
smplotlib
Matplotlib template for SuperMongo (SM) style. Make your plots stylish and professional (and old-school) by one line of code.
Installation
pip install smplotlib
or
git clone
cd smplotlib
pip install -e .
Usage
import smplotlib
Then just use matplotlib.pyplot
as usual. For a quick start, you can use smplotlib.demo_plot()
to generate a figure with the default settings. This figure is inspired by the two-phase ISM figure in Prof. Bruce Draine's book, but the cooling curve doesn't correspond to the actual CR rates and ISRF.
Hershey font
SuperMongo uses Hershey fonts. The ttf
files are from a compilation by astronomer yangcht
. Thanks for the great work!
There have been many efforts on translating the original Hershey font to modern formats, also see this and this. The font files in this repo still lack some characters, and the support for LaTeX and light weight fonts are not satisfying. If you have any suggestions, please feel free to open an issue or pull request.
Citation
If you find this package entertaining or useful, please consider citing it following the instructions in .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for smplotlib-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27694759f6902b50c07448f96a6afaa7a67d8d6988d48feb4b98b7f73919b44 |
|
MD5 | 505f360e3babb2e3410d9984d0e34b5e |
|
BLAKE2b-256 | 8a8c00d0d291ebbd16f087d4d9e733ed006042ec0ce31c080184deccc10bb11b |