File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 6
6
from typing import List , Union
7
7
8
8
matplotlib_installed = True
9
- matplotlib_version = None
10
9
try :
11
10
import matplotlib
12
11
import matplotlib .pyplot as plt
13
12
import matplotlib .transforms as transforms
14
13
from mpl_toolkits .axes_grid1 import make_axes_locatable
15
- matplotlib_version = matplotlib .__version__
16
14
except ImportError : # pragma: no cover
17
15
matplotlib_installed = False
18
16
except RuntimeError : # pragma: no cover
@@ -201,6 +199,7 @@ def _payoff_heatmap(
201
199
width = max (self .nplayers / 4 , 12 )
202
200
height = width
203
201
figure .set_size_inches (width , height )
202
+ matplotlib_version = matplotlib .__version__
204
203
cmap = default_cmap (matplotlib_version )
205
204
mat = ax .matshow (data , cmap = cmap )
206
205
plt .xticks (range (self .result_set .nplayers ))
You can’t perform that action at this time.
0 commit comments