{"description":"\u30c7\u30fc\u30bf\u306e\u5206\u6790\u3084\u53ef\u8996\u5316\u3067\u6563\u5e03\u56f3\u3092\u4f7f\u3046\u6642\u306b\u306f\uff0c\u30d7\u30ed\u30c3\u30c8\u3057\u305f\u30c7\u30fc\u30bf\u306e\u5ea7\u6a19\u3084\uff0c\u305d\u306e\u30c7\u30fc\u30bf\u304c\u793a\u3059\u30e9\u30d9\u30eb\u3084\u5024\u306b\u5fdc\u3058\u3066\u8272\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\uff0e matplotlib\u3067RGBA\u5024\u3092\u5909\u3048\u308b\u65b9\u6cd5\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 # \u5168\u3066\u540c\u3058\u8272\u30fb\u900f\u660e\u5ea6\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408 plt.scatter(x, y, c=\"red\", alpha=0.3) # \u5404\u8981\u7d20\u306e\u8272\u30fb\u900f\u660e\u5ea6\u3092\u500b\u5225\u306b\u8a2d\u5b9a\u3059\u308b\u5834\u5408 c = [(0,0,0,1), (0.5,0.5,0.3,0.5)] # RGBA\u5024\u306e\u30bf\u30d7\u30eb\u3092\u683c\u7d0d\u3057\u305f\u914d\u5217 plt.scatter(x, y, c=c) \u3053\u3053\u3067\uff0c\u5404\u8981\u7d20\u306e\u8272\u30fb\u900f\u660e\u5ea6\u3092\u500b\u5225\u306b\u8a2d\u5b9a\u3059\u308b\u5834\u5408\uff0c\u8272\u30fb\u30a2\u30eb\u30d5\u30a1\u5024\uff08\u900f\u660e\u5ea6\uff09\u3092\u30c7\u2026","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20210620/20210620201741.png","height":"190","blog_title":"Wizard Notes","type":"rich","url":"https://www.wizard-notes.com/entry/python/matplotlib-scatter-rgba-array","provider_url":"https://hatena.blog","width":"100%","published":"2021-06-20 21:28:06","categories":["Programming","Python","matplotlib"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fpython%2Fmatplotlib-scatter-rgba-array\" title=\"matplotlib \u306e\u6563\u5e03\u56f3\u306e\u8272\u30fb\u30a2\u30eb\u30d5\u30a1\u5024\uff08\u900f\u660e\u5ea6\uff09\u3092\u6ed1\u3089\u304b\u306b\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b\uff08cmap\u5229\u7528\uff09 - Wizard Notes\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://www.wizard-notes.com/","version":"1.0","title":"matplotlib \u306e\u6563\u5e03\u56f3\u306e\u8272\u30fb\u30a2\u30eb\u30d5\u30a1\u5024\uff08\u900f\u660e\u5ea6\uff09\u3092\u6ed1\u3089\u304b\u306b\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b\uff08cmap\u5229\u7528\uff09","author_url":"https://blog.hatena.ne.jp/Kurene/","author_name":"Kurene"}