backendでTkAggが読み込まれてないない可能性がある。
#pip3 uninstall matplotlib #sudo apt install python-tk #pip3 install --no-cache-dir matplotlib