Search This Blog

Thursday, May 31, 2012

Draw figures with Python

You can use matplotlib to draw professional graphs in python.

In many situations, you may want to generate graphic files instead of working on your screen. Toward this end, your python program will start with following three lines.

import matplotlib
matplotlib.use('Agg') # to generate files
import matplotlib.pyplot as plt


No comments:

Post a Comment