Skip to content

Commit e7613ae

Browse files
committed
Fix new matplotlib error in Firedrake examples CI
1 parent 4581407 commit e7613ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/from_firedrake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def main():
100100
bdy_vis.show_scalar_in_matplotlib_3d(bdy_field, do_show=False)
101101

102102
import matplotlib.cm as cm
103-
fig.colorbar(cm.ScalarMappable())
103+
fig.colorbar(cm.ScalarMappable(), ax=ax2)
104104
plt.show()
105105

106106

0 commit comments

Comments
 (0)