mpltools

Tools for Matplotlib
Download

mpltools Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Tony S. Yu
  • Publisher web site:
  • http://tonysyu.github.com/

mpltools Tags


mpltools Description

As the name implies, mpltools is a Python module that provides tools for working with matplotlib. For the most part, these tools are only loosely-connected in functionality, so the best way to get started is to look at the example gallery.StylesThis package got its start by implementing plotting "styles"---essentially stylesheets that are similar to matplotlibrc files. Unfortunately, the syntax for an mplstyle file is slightly different than matplotlibrc files because we use ConfigObj to parse them.Style names should be specified as sections in a "mplstyle" file. A simple mplstyle file would look like:text.fontsize = 12figure.dpi = 150text.fontsize = 10font.family = 'serif'mpltools searches the current working directory and your home directory for mplstyle files. To use a style, you just add:>>> from mpltools import style>>> style.use('style1')There are a number of pre-defined styles located in mpltools/style/. To list all available styles, use:>>> print style.availableInstallation from sourcempltools may be installed globally using: git clone git@github.com:tonysyu/mpltools.git cd mpltools python setup.py installor locally using: python setup.py install --prefix=${HOME}If you prefer, you can use it without installing, by simply adding this path to your PYTHONPATH variable and compiling the extensions: python setup.py build_ext -iProduct's homepage


mpltools Related Software