barbagroup / CFDPython

A sequence of Jupyter notebooks featuring the "12 Steps to Navier-Stokes" http://lorenabarba.com/
Other
3.47k stars 1.19k forks source link

Step 5: matplotlib error #80

Open neronotdante opened 2 years ago

neronotdante commented 2 years ago

gca() with keyword arguments was deprecated in Matplotlib 3.4 usingsubplot() or add_subplot()may resolve the question

bugleilei commented 2 years ago

您的来信已收到,谢谢!

unverozkol commented 2 years ago

using "ax = fig.add_subplot(111, projection='3d')" solved the problem in my case

onitake commented 2 years ago

It looks like the first argument is optional in matplotlib.

ax = fig.add_subplot(projection='3d')

worked for me.