Skip to main content

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

  1. copy the matplotlibrc file from /styles to matplotlib configuration directory (keep a backup copy of the old file).
  2. copy the journals styles from /styles to matplotlib configuration directory/stylelib
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

journal-styles-1.0.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

journal_styles-1.0.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file journal-styles-1.0.0.tar.gz.

File metadata

  • Download URL: journal-styles-1.0.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for journal-styles-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ae5557a87cd73d8e8b1d0526aacd8669dba7aa84df59f48eced87d99c53a90a5
MD5 e578c5a319482ec387b630320814154e
BLAKE2b-256 c0fd992d9c26a9d6de6d8f844b27224ef781be4557b42b5787cda453dbc71072

See more details on using hashes here.

File details

Details for the file journal_styles-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: journal_styles-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for journal_styles-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 884d5c10102e20854b8e3e951a971b4b4f9e9102be669629071b4930f4d14491
MD5 a5cc01fb20af79997192ae79676a7e42
BLAKE2b-256 34b6b2c90e974ac8385f22fa2024e96798a0027c70194c7d5002e9925f02dcba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page