Book Image

Mastering matplotlib

By : Duncan M. McGreggor, Duncan M McGreggor
Book Image

Mastering matplotlib

By: Duncan M. McGreggor, Duncan M McGreggor

Overview of this book

Table of Contents (16 chapters)
Mastering matplotlib
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

matplotlib modules


When discussing the architecture of software libraries, it is of great use to relate a conceptual overview to concrete software components. This not only increases the immediate knowledge with more definite context, but also provides a foundation for a quicker learning process during future explorations. Let's examine the modules in the matplotlib Python package.

Exploring the filesystem

Start by obtaining the IPython Notebook for this chapter, installing the dependencies, starting up the IPython server, and loading the notebook in your browser in the following way:

$ git clone https://github.com/masteringmatplotlib/architecture.git
$ cd architecture
$ make

Once the notebook is loaded, go ahead and run the initial setup commands:

In [1]: import matplotlib
        matplotlib.use('nbagg')
        %matplotlib inline

Now let's create two sets of imports, one for our dependencies and the other for modules that we've created specifically for this notebook:

In [2]: from glob import...