skip to navigation
skip to content

plotutils 0.3.2

Simple matplotlib-related utility functions.


This is where I keep matplotlib-related plotting utility functions I have found useful.

To install::

pip install plotutils


How to use `setfig`:

This will create a new figure (same as plt.figure() call in

>>> from plotutils import setfig
>>> setfig(None) #or setfig()

You can also set the current figure to be a given figure number, clear it, and start over, e.g.: `setfig(3)`.

`setfig(0)` will do nothing, implying you want to overplot on the currently active figure.

I use the `setfig` function in every function that I write that makes
a plot, almost always as follows:

.. code-block:: python

import matplotlib.pyplot as plt
def my_plot(x,y,fig=None,**kwargs):
File Type Py Version Uploaded on Size
plotutils-0.3.2.tar.gz (md5) Source 2015-03-05 2KB
  • Downloads (All Versions):
  • 21 downloads in the last day
  • 109 downloads in the last week
  • 555 downloads in the last month