Skip to content

Commit b584661

Browse files
committed
FIX: matplotlib deprecation warning
1 parent b863755 commit b584661

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lectures/samuelson.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.17.2
7+
jupytext_version: 1.16.7
88
kernelspec:
9-
name: python3
109
display_name: Python 3 (ipykernel)
1110
language: python
11+
name: python3
1212
---
1313

1414
```{raw} jupyter
@@ -1140,10 +1140,10 @@ class Samuelson():
11401140
label = rf'$\lambda_{i+1} = {sam.roots[i].real:.2f} {operator[i]} {sam.roots[i].imag:.2f}i$'
11411141
else:
11421142
label = rf'$\lambda_{i+1} = {sam.roots[i].real:.2f}$'
1143-
ax.scatter(0, 0, 0, label=label) # dummy to add to legend
1143+
ax.scatter(0, 0, s=0, label=label) # dummy to add to legend
11441144
11451145
# Add ρ pair to plot
1146-
ax.scatter(self.ρ1, self.ρ2, 100, 'red', '+',
1146+
ax.scatter(self.ρ1, self.ρ2, s=100, c='red', marker='+',
11471147
label=r'$(\ \rho_1, \ \rho_2 \ )$', zorder=5)
11481148
11491149
plt.legend(fontsize=12, loc=3)

0 commit comments

Comments
 (0)