6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

matplotlibの凡例を半透明に

Posted at

#pythonでmatplotlibを用いてグラフ描画をする時に凡例を1行で半透明にする書き方

   ax.legend()

の部分を以下のようにする。

   ax.legend().get_frame().set_alpha(0.6)

久しぶりに書こうとして、忘れていたので、こちらにメモ。

6
5
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
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?