LoginSignup
3
1

More than 5 years have passed since last update.

matplotlibが原因でanacondaが無言で落ちた時 / 何も表示されない時

Posted at

Windows環境のAnacondaでmatplotlibを使用した時に、
pythonが強制終了したりimshowでも何も表示されない場合、
matplotlibのバックエンドを入れ替えると動く場合があります。

import matplotlib.pyplot as plt #ここで落ちる

import matplotlib
matplotlib.use('TkAgg') #その前にバックエンドを入れ替える指定をする
import matplotlib.pyplot as plt

TkはTkinterのこと。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1