Skip to main content
plotutils
=====

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

Installation
------
To install::

pip install plotutils


Usage
------

How to use `setfig`:

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

>>> 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):
setfig(fig)
plt.plot(x,y,**kwargs)

Download files

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

Source Distribution

plotutils-0.3.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file plotutils-0.3.2.tar.gz.

File metadata

  • Download URL: plotutils-0.3.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for plotutils-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6dbc767600b3e30050c5634ee3f10b5280faa19e7fb0d59e7c35f112f7009d1a
MD5 fc6149f11cb49984ee7678d89a03cc5f
BLAKE2b-256 e9efbdfd5aeacc9803f1335a9a85542c7abe89b26a0d88c96fc2d8d71747cd2b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 file

0.3.1

1 file

0.3

1 file

0.2.1-1

1 file

0.2.1

1 file

0.2

1 file

0.1

1 file

Supported by

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