<?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>Programming</anon>
    <anon>Python</anon>
    <anon>matplotlib</anon>
  </categories>
  <description>データの分析や可視化で散布図を使う時には，プロットしたデータの座標や，そのデータが示すラベルや値に応じて色を変えることが多々あります． matplotlibでRGBA値を変える方法は、以下のようになっています。 # 全て同じ色・透明度を設定する場合 plt.scatter(x, y, c=&quot;red&quot;, alpha=0.3) # 各要素の色・透明度を個別に設定する場合 c = [(0,0,0,1), (0.5,0.5,0.3,0.5)] # RGBA値のタプルを格納した配列 plt.scatter(x, y, c=c) ここで，各要素の色・透明度を個別に設定する場合，色・アルファ値（透明度）をデ…</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-scatter-rgba-array&quot; title=&quot;matplotlib の散布図の色・アルファ値（透明度）を滑らかにグラデーションさせる（cmap利用） - 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/20210620/20210620201741.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-20 21:28:06</published>
  <title>matplotlib の散布図の色・アルファ値（透明度）を滑らかにグラデーションさせる（cmap利用）</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/python/matplotlib-scatter-rgba-array</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
