We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ad899 commit 1f896f4Copy full SHA for 1f896f4
axelrod/plot.py
@@ -1,4 +1,5 @@
1
from numpy import arange, median, nan_to_num
2
+import warnings
3
4
matplotlib_installed = True
5
try:
@@ -8,7 +9,9 @@
8
9
from mpl_toolkits.axes_grid1 import make_axes_locatable
10
except ImportError:
11
matplotlib_installed = False
-
12
+except RuntimeError:
13
+ matplotlib_installed = False
14
+ warnings.warn('matplotlib does work with virtual environments on MacOS.')
15
16
def default_cmap():
17
"""Sets a default matplotlib colormap based on the version."""
0 commit comments