<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kurene</author_name>
  <author_url>https://blog.hatena.ne.jp/Kurene/</author_url>
  <blog_title>Wizard Notes</blog_title>
  <blog_url>https://www.wizard-notes.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>matplotlib</anon>
  </categories>
  <description>やりたいこと matplotlib の背景を透明化してプロットしたいと思います。 savefig() による図の保存の場合は、こちらの例のように ax.patch.set_alpha(float) を使うことで実現できます。 以下の実装では、plt.show() でディスプレイ表示する場合の透明度設定方法を扱っています。 解決方法 図1: matplotlibのウィンドウを透明化 ウィンドウの透明化は、matplotlib のバックエンドによって設定する方法が変わります。以下の実装では、よく利用されるバックエンドである Qt5Agg と TkAgg を使ってみました。 なお、matplotli…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fpython%2Fmatplotlib-window-transparence&quot; title=&quot;matplotlibのウィンドウを透明化してプロット - Wizard Notes&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20191028/20191028182148.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-28 18:37:10</published>
  <title>matplotlibのウィンドウを透明化してプロット</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/python/matplotlib-window-transparence</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
