Skip to content

Simple setup utility for publication ready matplotlib figures

Notifications You must be signed in to change notification settings

lihongchun2007/paperplot

This branch is 3 commits ahead of hitzg/paperplot:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Li Hongchun
Aug 4, 2016
ac4d933 · Aug 4, 2016

History

11 Commits
Sep 2, 2014
Mar 10, 2015
Aug 4, 2016
Aug 4, 2016
Apr 29, 2016
Mar 10, 2015

Repository files navigation

paperplot

Simple setup utility for publication-ready matplotlib figures

Installation

Simply run:

python setup.py install           # using sudo might be necessary

Usage

Use \the\textwidth (or \the\columnwidth in multi-column articles) in the tex file to get the width of the text in pt. Then use setup() and paper_fig(width, height) to generate your plot.

import paperplot
import matplotlib.pyplot as plt

# setup
paperplot.setup()

# create a figure with proper sizes (specify width and height in pt)
fig = paperplot.paper_figure(300,200)

# some plotting
plt.plot(1,1)

# save the result
plt.savefig('my_figure.pdf')

About

Simple setup utility for publication ready matplotlib figures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%