Package for producing consistent figure dimensions for scientific journals
Project description
Module to design figures for scientific journals Uses python3 and matplotlib 3.2.1, should work for other versions
Installation
go to the module directory and execute
python journal_styles.py install
This will generate style files and print installation instructions. You will need to manually
- copy the matplotlibrc file from /styles to matplotlib configuration directory (keep a backup copy of the old file).
- copy the journals styles from /styles to matplotlib configuration directory/stylelib
- change the ipython matplotlib-inline interface to avoid overriding of parameters while using jupyter notebooks.
Usage
Most users will only need the class figure_frame.
from journal_styles import figure_frame
an instance of the class can be initializad as
ff = figure_frame('lMs','lMs')
and used as
plt.figure(figsize = ff.figsize)
plt.axes(ff.rects[0])
See webpage for further examples.
Updating styles
python journal_styles.py update-styles
Will update the styles in the local styles directory. Must be run after adding or modifying journal parameters.
Uninstalling
python journal_styles.py uninstall
returns instructions for removing files. You will need to undo steps 1-2-3 of the installation.
Project details
Release history Release notifications | RSS feed
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 journal_styles-1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb213725b1f2aa83c4d36f10bc13896297394794f505a23c7c82be886d0c32c7 |
|
MD5 | 265402119ed87c1807bef92cd3d767a9 |
|
BLAKE2b-256 | 9d9c06b877b982e5f69ffc760b7d51e9dc52b3e59d4f5913d0f63e788660e46b |