Skip to content

Instantly share code, notes, and snippets.

@philippstroehle
Created September 19, 2013 09:34
Show Gist options
  • Save philippstroehle/6621189 to your computer and use it in GitHub Desktop.
Save philippstroehle/6621189 to your computer and use it in GitHub Desktop.
Headless plotting with pyplot, matplotlib in python http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
# do this before importing pylab or pyplot
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment