<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>niming538</author_name>
  <author_url>https://blog.hatena.ne.jp/niming538/</author_url>
  <blog_title>niming538の日記</blog_title>
  <blog_url>https://kquoe2.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに Colabで遊んでいます。 数直線number lineをmatplotlibで描いて見ました。コードセルにimport matplotlib.pyplot as pltとして書いて、実行すると描画がされます。svgにも吐き出せたので、ここではsvgで貼り付けました。 コード まずは両端を矢印にするのにどうしたらよいか苦労しました。メモリに数字をつけるのもようやくできました。 はじめからSVGで描いた方が簡単だったと思うけど、matplotlibの勉強にはなったと思う。 import matplotlib.pyplot as plt import numpy as np ax=plt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkquoe2.hatenablog.com%2Fentry%2F2020%2F08%2F03%2F214003&quot; title=&quot;matplotlibで数直線を描く - niming538の日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-03 21:40:03</published>
  <title>matplotlibで数直線を描く</title>
  <type>rich</type>
  <url>https://kquoe2.hatenablog.com/entry/2020/08/03/214003</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
