<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/matplotlib/">
    <title>嫌儲Python統計部</title>
    <link>http://w.atwiki.jp/matplotlib/</link>
    <atom:link href="https://w.atwiki.jp/matplotlib/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>嫌儲Python統計部</description>

    <dc:language>ja</dc:language>
    <dc:date>2014-10-13T14:10:17+09:00</dc:date>
    <utime>1413177017</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/matplotlib/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/matplotlib/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/matplotlib/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/matplotlib/pages/1.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/matplotlib/pages/16.html">
    <title>見栄え</title>
    <link>https://w.atwiki.jp/matplotlib/pages/16.html</link>
    <description>
      **x座標名、y座標名、タイトルを指定する

#highlight(python,linenumber){{
import numpy as np
import matplotlib.pyplot as plt
 
x = np.linspace(-10,10,200)
y = (x**2)

plt.title(&quot;Kenmo graph&quot;)
plt.xlabel(&quot;X-axis&quot;)
plt.ylabel(&quot;Y-axis&quot;)
plt.legend()
 
plt.plot(x,y)
plt.show()}}
&amp;blankimg(title.png,width=560,height=420)

**軸ラベルを表示しない
plt.xticks([[])とplt.yticks([])を追加します。

#highlight(python,linenumber){{
import numpy as np
import matplotlib.pyplot as plt
 
x = np.linspace(-10,10,200)
y = (x**2)

plt.xticks([])
plt.yticks([])
 
plt.plot(x,y)
plt.show()}}
&amp;blankimg(noxy.png,width=560,height=420)

**原点に線を引く
axhline()、axvline()で教科書のグラフのような見栄えにします。

#highlight(python,linenumber){{
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-10,10,100)
y = (x**3)

plt.axhline(linewidth=1.7, color=&quot;k&quot;)
plt.axvline(linewidth=1.7, color=&quot;k&quot;)

plt.plot(x,y)
plt.show()}}
&amp;blankimg(hline.png,width=560,height=420)    </description>
    <dc:date>2014-10-13T14:10:17+09:00</dc:date>
    <utime>1413177017</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/matplotlib/pages/15.html">
    <title>関数のグラフ</title>
    <link>https://w.atwiki.jp/matplotlib/pages/15.html</link>
    <description>
      *関数のグラフ
**一次関数のグラフ
$$y=x$$のグラフです。変数xの変域は0から10の場合。
#highlight(python,linenumber){{
import matplotlib.pyplot as plt

plt.plot(range(10))
plt.show()}}
&amp;blankimg(figure_0.png,width=560,height=420)

**二次関数のグラフ
$$y=x^2$$のグラフです。変数xの変域は-10から10であるとき次のコードを実行します。

#highlight(python,linenumber){{
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-10,10,200)
y = (x**2)

plt.plot(x,y)
plt.show()}}
&amp;blankimg(df.png,width=560,height=420)

**三次関数のグラフ
$$y=x^3$$のグラフ。

#highlight(python,linenumber){{
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-10,10,200)
y = (x**3)

plt.plot(x,y)
plt.show()}}
&amp;blankimg(tf.png,width=560,height=420)

**三角関数のグラフ
numpy.arange()やnumpy.linspace()でy=1/2x方程式などが描画可能です。

#highlight(python,linenumber){{
import matplotlib.pyplot as plt
import numpy

plt.plot(numpy.sin(numpy.linspace(0,10,50)))
plt.show()}}
&amp;blankimg(figure_3.png,width=560,height=420)    </description>
    <dc:date>2014-10-12T10:29:49+09:00</dc:date>
    <utime>1413077389</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/matplotlib/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/matplotlib/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)


&amp;link_editmenu2(text=ここを編集)
    </description>
    <dc:date>2014-10-10T19:05:43+09:00</dc:date>
    <utime>1412935543</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/matplotlib/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/matplotlib/pages/1.html</link>
    <description>
      **Matplotlibとは？
Pythonのグラフ描画ライブラリです。特に科学計算用ライブラリのNumPyに特化しています。    </description>
    <dc:date>2014-10-11T23:42:34+09:00</dc:date>
    <utime>1413038554</utime>
  </item>
  </rdf:RDF>
