Skip to main content

Collection of helpers for plotting with matplotlib

Project description

PlotKit

Collection of some helpers and functions, mostly used by martok.

Installation

Install using pip:

pip install mplotkit

Usage

Minimal example:

import numpy as np
import plotkit.plotkit as pk

pk.set_style('print')

fig, (ax1, ax2) = pk.new_regular(1,2)
t = np.arange(0.0, 2.0, 0.01)
ax1.plot(t, 1 + np.sin(2*np.pi*t))
pk.set_grid(ax1)
ax2.plot(t, 1 + np.cos(2*np.pi*t))
pk.set_ticks(ax2)
pk.set_grid(ax2)
pk.finalize(fig, 'example_output.png')

Result: Example Output

Project details


Download files

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

Source Distribution

mplotkit-0.3.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

mplotkit-0.3.0-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page