disadone / pyperplot

Figures management while writing papers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyperplot

matplotlibrc files for different journals.

you should set the legend parameter bbox_to_anchor=(1,1) for all graphs

intallation

python -m pip install --index-url https://test.pypi.org/simple/ --no-deps pyperplot --upgrade

or

python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps pyperplot --upgrade

example

import pyperplot as ppp

with ppp.SF('hello',nrows=2) as (fig,axes):
    axes[0].plot([1,2,3])
    axes[1].plot([3,2,1])

or

import pyperplot as ppp

with ppp.SF('hello',figure_folder='figs',figure_type='svg',style='neuron-plot',nrows=2) as (fig,axes):
    axes[0].plot([1,2,3])
    axes[1].plot([3,2,1])

A file named 'hello.svg' should be generated in a folder named 'figs' automatically created.

see (unfinished) documentation

About

Figures management while writing papers

License:MIT License


Languages

Language:Python 97.1%Language:Shell 2.9%