From 08eb3674d457591178351d0d1f1f02a32703fb73 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Thu, 24 Feb 2011 00:10:58 +0000 Subject: [PATCH] correctly detect matplotlib --- test/example_unbinned.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/example_unbinned.py b/test/example_unbinned.py index a5f9865..f917276 100755 --- a/test/example_unbinned.py +++ b/test/example_unbinned.py @@ -203,8 +203,7 @@ def plot_counts(observations): Plot counts. """ # Only proceed if matplotlib is available - if 0 == 0: - #try: + try: # Import matplotlib import matplotlib.pyplot as plt @@ -338,8 +337,8 @@ def plot_counts(observations): # Show counts spectra plt.show() - #except: - # print "Matplotlib is not (correctly) installed on your system. No counts spectra are shown." + except: + print "Matplotlib is not (correctly) installed on your system. No counts spectra are shown." # Return return -- libgit2 0.21.4