Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Render matplotlib png images to a zip file

Project Description
# PNG Renderer

For constructing a zip file of png images. I created this package as I had many plots associated from the output of a plotting script and wanted to keep them together. Similar to `matplotlib.backends.PdfPages` I wanted to associate the images, but using the `png` format, so I chose to zip the collection of images. I wanted png images as they contained large amounts of data which created extremely large pdf files.

## Example usage

``` python
import matplotlib.pyplot as plt
from pngrenderer import PNGRenderer

fig = plt.figure()

plt.plot(...)

# Save the resulting image(s) to "out.zip"
renderer = PNGRenderer("out")

# Save the first png image
renderer.savefig("first.png")

# Alternatively call .save_page
# renderer.save_page("first.png")

# Render the zip file to disk
renderer.render()

# Alternatively use the context manager
from pngrenderer import png_render

with png_render("out") as renderer:
renderer.savefig()

# The context manager calls the `render` method
```


## Requirements and installation

This package requires matplotlib, but no other packages

Installation: `pip install git+https://github.com/mindriot101/pngrenderer.git`

If this package ever makes it onto pypi then probably the installation will be `pip install matplotlib-pngrenderer`.

## Contributing

To contribute, clone the repository at [this github link](https://github.com/mindriot101/matplotlib-pngrenderer), and run the tests with `python setup.py test`
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pngrenderer-0.1.2-py27-none-any.whl (5.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 4, 2013
pngrenderer-0.1.2.tar.gz (167.7 kB) Copy SHA256 Checksum SHA256 Source Dec 4, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting