I spent an embarrassing amount of time trying to resolve this, even engaging help from 3 different AIs. I got so many “definitive solutions” that didn’t work. I even switched to VSCode thinking it was a PyCharm issue. When VSCode had the same problem, the solution became clear.
I uninstalled matplotlib and installed matplotlib=3.8.4.