LoginSignup
0
1

matplotlibで図が表示されない場合

Posted at

matplotlibを使用している際以下のようなエラーメッセージが出る場合があります。

UserWarning: Matplotlib is currently using module://matplotlib_inline.backend_inline, which is a non-GUI backend, so cannot show the figure.

対処法

その場合はmatplotlibをimportするコードの上に%matplotlib inlineを追加することで解消できます。

%matplotlib inline
import matplotlib.pyplot as plt

以上!

0
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
0
1