Chapter 8. Matplotlib for the Web
The World Wide Web is pervasive in all of our activities. Today, we are seeing a gradual shift from the desktop to the Web: applications that were earlier installed on personal desktop computers are now used through the browser and so on.
Programming for the Web has become an even hotter topic since the rise of the so-called Web 2.0. So if we want to be a part of this, then we need powerful tools at hand, and a web graphing solution is one of them.
In this chapter, we will explore how to expose Matplotlib on the Web using:
CGI (through Apache
mod_cgi
)mod_python
Django
Pylons
The first two are low-level methods for programming the Web, while the latter are two of the most popular web frameworks for Python.
The world of programming is always evolving, so it's important to have a common ground from where we can start productively. Here are the versions of the tools that we will use during this chapter. We suggest you to use the same versions to try the examples...