PacktLib: Matplotlib for Python Developers

Matplotlib for Python Developers

Credits

About the Author

About the Reviewers

Preface

Introduction to Matplotlib

Merits of Matplotlib

Matplotlib web sites and online documentation

Output formats and backends

About dependencies

Installing Matplotlib

Summary

Getting Started with Matplotlib

First plots with Matplotlib

Multiline plots

Grid, axes, and labels

Titles and legends

A complete example

Saving plots to a file

Interactive navigation toolbar

IPython support

Configuring Matplotlib

Summary

Decorate Graphs with Plot Styles and Types

Markers and line styles

Handling X and Y ticks

Plot types

Polar charts

Text inside figure, annotations, and arrows

Summary

Advanced Matplotlib

Object-oriented versus MATLAB styles

Subplots

Plotting dates

Text properties, fonts, and LaTeX

Contour plots and image plotting

Summary

Embedding Matplotlib in GTK+

A brief introduction to GTK+

Embedding a Matplotlib figure in a GTK+ window

Real-time plots update

Embedding Matplotlib in a Glade application

Summary

Embedding Matplotlib in Qt 4

Brief introduction to Qt 4 and PyQt4

Embedding a Matplotlib figure in a Qt window

Real-time update of a Matplotlib graph

Embedding Matplotlib in a GUI made with Qt Designer

Summary

Embedding Matplotlib in wxWidgets

Brief introduction to wxWidgets and wxPython

Embedding a Matplotlib figure in a wxFrame

Real-time plots update

Embedding Matplotlib in a GUI made with wxGlade

Summary

Matplotlib for the Web

Matplotlib and CGI

Matplotlib and mod_python

Web Frameworks and MVC

Matplotlib and Django

Matplotlib and Pylons

Summary

Matplotlib in the Real World

Plotting data from a database

Plotting data from the Web

Plotting data by parsing an Apache log file

Plotting data from a CSV file

Plotting extrapolated data using curve fitting

Tools using Matplotlib

Plotting geographical data

Summary