My environment MacOS Sierra v10.12.6 PyCharm Community 2018.3 Python v3.6.8 Matplotlib v2.2.3 Symptom This snippet hangs in PyCharm: