Skip to content

Commit 7d46b8f

Browse files
committed
Fix sphinx build bug.
1 parent de2e59e commit 7d46b8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

axelrod/plot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
from typing import List, Union
77

88
matplotlib_installed = True
9-
matplotlib_version = None
109
try:
1110
import matplotlib
1211
import matplotlib.pyplot as plt
1312
import matplotlib.transforms as transforms
1413
from mpl_toolkits.axes_grid1 import make_axes_locatable
15-
matplotlib_version = matplotlib.__version__
1614
except ImportError: # pragma: no cover
1715
matplotlib_installed = False
1816
except RuntimeError: # pragma: no cover
@@ -201,6 +199,7 @@ def _payoff_heatmap(
201199
width = max(self.nplayers / 4, 12)
202200
height = width
203201
figure.set_size_inches(width, height)
202+
matplotlib_version = matplotlib.__version__
204203
cmap = default_cmap(matplotlib_version)
205204
mat = ax.matshow(data, cmap=cmap)
206205
plt.xticks(range(self.result_set.nplayers))

0 commit comments

Comments
 (0)