{"id":269,"date":"2014-09-05T08:24:12","date_gmt":"2014-09-04T23:24:12","guid":{"rendered":"https:\/\/www.dogrow.net\/python\/?p=269"},"modified":"2019-10-19T09:18:00","modified_gmt":"2019-10-19T00:18:00","slug":"blog62","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/python\/blog62\/","title":{"rendered":"(62) \u76f4\u4ea4\u5ea7\u6a19 to \u6975\u5ea7\u6a19\u5909\u63db"},"content":{"rendered":"<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\n# \u30e9\u30f3\u30c0\u30e0\u306b\u70b9\u3092\u30d7\u30ed\u30c3\u30c8\r\nx = np.random.randint(1,5,5)\r\ny = np.random.randint(1,5,5)\r\n\r\n# matplotlib\u306e\u63cf\u753b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8#1\u3092\u4f5c\u6210\r\nax1 = plt.subplot(1,2,1)\r\n\r\n# \u6563\u5e03\u56f3\u3092\u4f5c\u6210\r\nax1.scatter(x,y)\r\nax1.axis(&#x5B;0,10,0,10])\r\nax1.grid(True)\r\n\r\n# \u6975\u5ea7\u6a19\u306b\u5909\u63db\r\nradii = np.sqrt(x**2 + y**2)\r\ntheta = np.arctan2(y,x)\r\n\r\n# matplotlib\u306e\u63cf\u753b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8#2\u3092\u4f5c\u6210\r\nax2 = plt.subplot(1,2,2,polar=True)\r\n\r\n# \u6563\u5e03\u56f3\u3092\u4f5c\u6210\r\nax2.scatter(theta,radii)\r\nax2.set_rmax(10)\r\nax2.grid(True)\r\n\r\n# \u8868\u793a\u3092\u5b9f\u884c\r\nplt.show()\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/python\/wp-content\/uploads\/2014\/09\/20140905_01.png\" alt=\"20140905_01\" \/><\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>import numpy as np import matplotlib.pyplot as plt # \u30e9\u30f3\u30c0\u30e0\u306b\u70b9\u3092\u30d7\u30ed\u30c3\u30c8 x = np.random.randint(1,5,5) y = np.random.ra\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/python\/blog62\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-matplotlib"],"views":12159,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":10,"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"predecessor-version":[{"id":1886,"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/posts\/269\/revisions\/1886"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/python\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}