<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toyship</author_name>
  <author_url>https://blog.hatena.ne.jp/toyship/</author_url>
  <blog_title>Toyship.org</blog_title>
  <blog_url>https://www.toyship.org/</blog_url>
  <categories>
  </categories>
  <description>Matplotを使ってグラフを描いた場合、環境によって文字が表示されないことがあります。 そんな時には、好きなフォントを設定してみましょう。 フォントを指定しない場合 まずは普通にsinグラフを描いてみましょう。 import numpy as np import matplotlib.pyplot as plt # x軸の範囲を設定 x = np.linspace(-np.pi, np.pi, 300) # sinのグラフを描画 plt.plot(x, np.sin(x)) # グラフのタイトルの設定 plt.title('Sin(x) のグラフ') # x軸、y軸のラベルを設定 plt.x…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.toyship.org%2F2023%2F04%2F30%2F222538&quot; title=&quot;Matplotのグラフにフォントを指定する - Toyship.org&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/t/toyship/20230430/20230430221644.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-30 22:25:38</published>
  <title>Matplotのグラフにフォントを指定する</title>
  <type>rich</type>
  <url>https://www.toyship.org/2023/04/30/222538</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
