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!

Convenient matplotlib subplot grids

Project Description

A convenient way to lay out matplotlib figures The first argument is a multiline string which diagrammatically describes the desired layout of your plot

@return (figure, mpt)

e.g., a simple single plot looks like grid1 = ‘’’ A ‘’‘

If you want complicated grid layouts, you can do that as well

grid2 = ‘’’ AA AA BB CC CC ‘’‘

grid3 = ‘’’ AAABB CCCBB ‘’‘

Make sure that your subfigures have a rectangular shape e.g. ‘’’ AA BB A’‘’ Will not work at all.

multiplot takes care of creating the layout using matplotlib’s gridspec You can access each individual subplot by dictionary key access. The figure is exposed as well

fig, mpt = multiplot(grid3) mpt[“A”].plot(…) mpt[“B”].set_title(…)

Any arguments you want to pass to plt.figure, you can pass to multiplot right after the grid eg fig, mpt = multiplot(grid3, figsize=(10, 10), …)

Easily layout complicated grids Easily change its layout Complete access to axes and figure

Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

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