<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>upura</author_name>
  <author_url>https://blog.hatena.ne.jp/upura/</author_url>
  <blog_title>u++の備忘録</blog_title>
  <blog_url>https://upura.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>Pythonによる勾配降下法の実装 - u++の備忘録の記事で、以下のような図を作成した。y軸のラベルは横を向いている。これで全く問題ないのだが、ラベルの向きを変えたい場合には、次のように&quot;rotation&quot;のオプションを指定すれば良い。 import numpy as np import matplotlib.pyplot as plt def J(x): return x*(x-4)+5 n = 100 x = np.linspace(0, 5, n) np.random.seed(seed = 32) stack = [] # プロット用のリスト # Graph plt.xlim(-1,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fupura.hatenablog.com%2Fentry%2F2017%2F07%2F05%2F170005&quot; title=&quot;matplotlibでラベルの向きを変える - u++の備忘録&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/u/upura/20170705/20170705165941.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-05 17:00:05</published>
  <title>matplotlibでラベルの向きを変える</title>
  <type>rich</type>
  <url>https://upura.hatenablog.com/entry/2017/07/05/170005</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
