Skip to content

Commit 34f1074

Browse files
committed
fix some test warnings
1 parent 7018d8b commit 34f1074

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

test/test_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def plot():
1010
z = x ** 2 - y ** 2
1111

1212
fig = plt.figure()
13-
plt.pcolormesh(x, y, z, cmap=cm.viridis)
13+
plt.pcolormesh(x, y, z, cmap=cm.viridis, shading="gouraud")
1414

1515
return fig
1616

test/test_logplot_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def plot():
77
a = [pow(10, i) for i in range(10)]
88
fig = plt.figure()
99
ax = fig.add_subplot(1, 1, 1)
10-
ax.semilogy(a, color="blue", lw=0.25, basey=2)
10+
ax.semilogy(a, color="blue", lw=0.25, base=2)
1111

1212
plt.grid(b=True, which="major", color="g", linestyle="-", linewidth=0.25)
1313
plt.grid(b=True, which="minor", color="r", linestyle="--", linewidth=0.5)

test/test_quadmesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def v(x, y, t):
2020
return -np.cos(x) * np.sin(y) * F(t)
2121

2222
fig, axs = plt.subplots(2, figsize=(8, 12))
23-
axs[0].pcolormesh(X, Y, u(X, Y, 0))
24-
axs[1].pcolormesh(X, Y, v(X, Y, 0))
23+
axs[0].pcolormesh(X, Y, u(X, Y, 0), shading="gouraud")
24+
axs[1].pcolormesh(X, Y, v(X, Y, 0), shading="gouraud")
2525
for ax in axs:
2626
ax.set_xlim(x[0], x[-1])
2727
ax.set_ylim(y[0], y[-1])

test/test_viridis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def plot():
1010
z = x ** 2 - y ** 2
1111

1212
fig = plt.figure()
13-
plt.pcolormesh(x, y, z, cmap=cm.viridis)
13+
plt.pcolormesh(x, y, z, cmap=cm.viridis, shading="gouraud")
1414
# plt.colorbar()
1515

1616
return fig

0 commit comments

Comments
 (0)