<?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 でハッチパターンの棒グラフを描画してみます。 解決方法 図：ハッチパターンを適用した棒グラフ plt.bar() の引数 hatch に文字列を渡すことでハッチパターンを使うことができます。 基本的に、patterns = [ &quot;/&quot; , &quot;\\&quot; , &quot;|&quot; , &quot;-&quot; , &quot;+&quot; , &quot;x&quot;, &quot;o&quot;, &quot;O&quot;, &quot;.&quot;, &quot;*&quot; ] の10種類あります。 また、&quot;/////&quot; とすることで、ハ…</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-hatch-pattern&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/20191024/20191024020339.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-24 02:13:23</published>
  <title>matplotlib: 棒グラフでハッチパターンを使う</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/python/matplotlib-hatch-pattern</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
