Skip to content

Commit 09af05f

Browse files
authored
Merge pull request #2631 from Trusted-AI/dependabot/pip/matplotlib-3.9.4
Bump matplotlib from 3.7.1 to 3.9.4
2 parents a8b7ff7 + f9c3294 commit 09af05f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

art/evaluations/security_curve/security_curve.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,12 @@ def plot(self) -> None: # pragma: no cover
165165
from matplotlib import pyplot as plt
166166

167167
plt.plot(self.eps_list, self.accuracy_adv_list, label="adversarial", marker="o")
168-
plt.plot([self.eps_list[0], self.eps_list[-1]], [self.accuracy, self.accuracy], linestyle="--", label="benign")
168+
plt.plot(
169+
[self.eps_list[0], self.eps_list[-1]], # type: ignore
170+
[self.accuracy, self.accuracy], # type: ignore
171+
linestyle="--",
172+
label="benign",
173+
)
169174
plt.legend()
170175
plt.xlabel("Attack budget eps")
171176
plt.ylabel("Accuracy")

art/visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def plot_3d(
150150
for i, coord in enumerate(points):
151151
try:
152152
color_point = labels[i]
153-
axis.scatter3D(coord[0], coord[1], coord[2], color=colors[color_point])
153+
axis.scatter3D(coord[0], coord[1], coord[2], color=colors[color_point]) # type: ignore
154154
except IndexError:
155155
raise ValueError(
156156
"Labels outside the range. Should start from zero and be sequential there after"

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
numpy>=1.18.5,<1.27
66
scipy==1.10.1
7-
matplotlib==3.7.1
7+
matplotlib==3.9.4
88
scikit-learn==1.6.1
99
six==1.17.0
1010
Pillow==11.1.0

0 commit comments

Comments
 (0)