From: W. Trevor King Date: Fri, 30 Nov 2012 19:20:37 +0000 (-0800) Subject: plot_image.py: mention ~/.matplotlib/matplotlibrc for backend selection X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d7c75c185995128b93579a4b0756fd56d4d2b50e;p=assignment-template.git plot_image.py: mention ~/.matplotlib/matplotlibrc for backend selection --- diff --git a/src/plot_image/plot_image.py b/src/plot_image/plot_image.py index fffab70..7766530 100755 --- a/src/plot_image/plot_image.py +++ b/src/plot_image/plot_image.py @@ -63,6 +63,12 @@ import numpy #matplotlib.use('Agg') # select backend that doesn't require X Windows #matplotlib.use('GTKAgg') # select backend that supports pylab.show() +# Alternatively, you can configure the backend using +# ~/.matplotlib/matplotlibrc: +# $ cat ~/.matplotlib/matplotlibrc: +# backend : Agg +# #backend : GTKAgg + import pylab