john-science / python_for_scientists

Python Open Courseware for Scientists and Engineers
GNU General Public License v3.0
68 stars 40 forks source link

What's the deal with: matplotlib use agg #31

Closed john-science closed 9 years ago

john-science commented 9 years ago

In the past, I have had to use these two lines at various times to run my matplotlib scripts:

import matplotlib
matplotlib.use('Agg')

Why is this again? There will be a lot of people taking this class, if this is a problem I ran into, certainly some of them will have also.

Research and add general solution(s) to the lecture.