Skip to content

Instantly share code, notes, and snippets.

@philippstroehle
Created September 19, 2013 09:34
Show Gist options
  • Select an option

  • Save philippstroehle/6621189 to your computer and use it in GitHub Desktop.

Select an option

Save philippstroehle/6621189 to your computer and use it in GitHub Desktop.

Revisions

  1. philippstroehle created this gist Sep 19, 2013.
    4 changes: 4 additions & 0 deletions plot_headless
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # do this before importing pylab or pyplot
    import matplotlib
    matplotlib.use('Agg')
    from matplotlib import pyplot as plt