<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>最近色々とNumpy+Matplotlibでグラフを書いているが、デフォルトの設定で出力すると800x600ピクセルで出力されるのではてなダイアリーに貼ったときに縮小されてしまう。そこでサイズの変更の仕方を調べてみた。まずmatplotlib.pyplot.figureにはfigsizeってオプション引数がある。これはインチで、デフォルトでは(8, 6)。グラフを正方形にしたいとかならここで変えてもいい。 figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k')でも僕の場合は縦横比は今のままで単にサイズだけ小さ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20111121%2F1321849806&quot; title=&quot;Matplotlibでグラフのサイズを変更 - 西尾泰和のはてなダイアリー&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/n/nishiohirokazu/20111121/20111121132943.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-11-21 13:30:06</published>
  <title>Matplotlibでグラフのサイズを変更</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20111121/1321849806</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
