Skip to content

Commit c177742

Browse files
committed
fix matplotlib test bugs
1 parent b296e71 commit c177742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainpy/integrators/sde/tests/test_sde_scalar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def lorenz_system(method, **kwargs):
5050
mon3 = bp.math.array(mon3).to_numpy()
5151

5252
fig = plt.figure()
53-
ax = fig.gca(projection='3d')
53+
ax = fig.add_subplot(111, projection='3d')
5454
plt.plot(mon1, mon2, mon3)
5555
ax.set_xlabel('x')
5656
ax.set_xlabel('y')

0 commit comments

Comments
 (0)