Commit 0adb5cd766b4087f340045131e48641763d5bf63
1 parent
17c4b058
Correct show_pull_evolution.py script
Showing
1 changed file
with
2 additions
and
2 deletions
examples/show_pull_evolution.py
| @@ -22,10 +22,10 @@ import sys | @@ -22,10 +22,10 @@ import sys | ||
| 22 | import csv | 22 | import csv |
| 23 | try: | 23 | try: |
| 24 | import matplotlib.pyplot as plt | 24 | import matplotlib.pyplot as plt |
| 25 | -except: | ||
| 26 | - print('This script needs the "matplotlib" module') | ||
| 27 | plt.figure() | 25 | plt.figure() |
| 28 | plt.close() | 26 | plt.close() |
| 27 | +except: | ||
| 28 | + print('This script needs the "matplotlib" module') | ||
| 29 | sys.exit() | 29 | sys.exit() |
| 30 | try: | 30 | try: |
| 31 | import numpy as np | 31 | import numpy as np |