Skip to content

Commit d75fdd5

Browse files
committed
Ran black
1 parent 4f310ca commit d75fdd5

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

axelrod/plot.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def _boxplot_xticks_labels(self):
7676
return [str(n) for n in self.result_set.ranked_names]
7777

7878
def boxplot(
79-
self, title: Optional[titleType] = None, ax: Optional[matplotlib.axes.Axes] = None
79+
self,
80+
title: Optional[titleType] = None,
81+
ax: Optional[matplotlib.axes.Axes] = None,
8082
) -> matplotlib.figure.Figure:
8183
"""For the specific mean score boxplot."""
8284
data = self._boxplot_dataset
@@ -98,7 +100,9 @@ def _winplot_dataset(self):
98100
return wins, ranked_names
99101

100102
def winplot(
101-
self, title: Optional[titleType] = None, ax: Optional[matplotlib.axes.Axes] = None
103+
self,
104+
title: Optional[titleType] = None,
105+
ax: Optional[matplotlib.axes.Axes] = None,
102106
) -> matplotlib.figure.Figure:
103107
"""Plots the distributions for the number of wins for each strategy."""
104108

@@ -126,7 +130,9 @@ def _sdv_plot_dataset(self):
126130
return diffs, ranked_names
127131

128132
def sdvplot(
129-
self, title: Optional[titleType] = None, ax: Optional[matplotlib.axes.Axes] = None
133+
self,
134+
title: Optional[titleType] = None,
135+
ax: Optional[matplotlib.axes.Axes] = None,
130136
) -> matplotlib.figure.Figure:
131137
"""Score difference violin plots to visualize the distributions of how
132138
players attain their payoffs."""
@@ -143,7 +149,9 @@ def _lengthplot_dataset(self):
143149
]
144150

145151
def lengthplot(
146-
self, title: Optional[titleType] = None, ax: Optional[matplotlib.axes.Axes] = None
152+
self,
153+
title: Optional[titleType] = None,
154+
ax: Optional[matplotlib.axes.Axes] = None,
147155
) -> matplotlib.figure.Figure:
148156
"""For the specific match length boxplot."""
149157
data = self._lengthplot_dataset
@@ -202,15 +210,19 @@ def _payoff_heatmap(
202210
return figure
203211

204212
def pdplot(
205-
self, title: Optional[titleType] = None, ax: Optional[matplotlib.axes.Axes] = None
213+
self,
214+
title: Optional[titleType] = None,
215+
ax: Optional[matplotlib.axes.Axes] = None,
206216
) -> matplotlib.figure.Figure:
207217
"""Payoff difference heatmap to visualize the distributions of how
208218
players attain their payoffs."""
209219
matrix, names = self._pdplot_dataset
210220
return self._payoff_heatmap(matrix, names, title=title, ax=ax)
211221

212222
def payoff(
213-
self, title: Optional[titleType] = None, ax: Optional[matplotlib.axes.Axes] = None
223+
self,
224+
title: Optional[titleType] = None,
225+
ax: Optional[matplotlib.axes.Axes] = None,
214226
) -> matplotlib.figure.Figure:
215227
"""Payoff heatmap to visualize the distributions of how
216228
players attain their payoffs."""

axelrod/strategies/ann.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ class ANN(Player):
198198
}
199199

200200
def __init__(
201-
self, num_features: int, num_hidden: int, weights: Optional[List[float]] = None
201+
self,
202+
num_features: int,
203+
num_hidden: int,
204+
weights: Optional[List[float]] = None,
202205
) -> None:
203206
Player.__init__(self)
204207
self.num_features = num_features

0 commit comments

Comments
 (0)