Skip to content

Commit 59de6e6

Browse files
committed
[#668] Improve warning message
1 parent 1f896f4 commit 59de6e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

axelrod/plot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
matplotlib_installed = False
1212
except RuntimeError:
1313
matplotlib_installed = False
14-
warnings.warn('matplotlib does work with virtual environments on MacOS.')
14+
warnings.warn(
15+
'Matplotlib failed to import and so no plots will be produced. This ' +
16+
'could be caused by using a virtual environment on OSX. See ' +
17+
'http://matplotlib.org/faq/virtualenv_faq.html for details.')
18+
1519

1620
def default_cmap():
1721
"""Sets a default matplotlib colormap based on the version."""

0 commit comments

Comments
 (0)