{"id":1072,"date":"2020-03-11T20:58:13","date_gmt":"2020-03-11T11:58:13","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1072"},"modified":"2020-03-12T12:01:01","modified_gmt":"2020-03-12T03:01:01","slug":"matplotlib-3-2-0-%e3%81%a7-sympy-%e3%81%ae-plot-%e3%81%ab%e4%b8%8d%e5%85%b7%e5%90%88","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1072\/","title":{"rendered":"matplotlib 3.2.0 \u3067 SymPy \u306e plot \u306b\u4e0d\u5177\u5408"},"content":{"rendered":"<h3>\u78ba\u8a8d\u7528\u30b3\u30fc\u30c9<\/h3>\n<p>matplotlib \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 3.1.2 \u3067\u306f\u306a\u304f\u306a\u3063\u3066\u3044\u3066\uff0cSymPy \u306e plot \u306b\u4e0d\u5177\u5408\u304c\u51fa\u3066\u3044\u306a\u3044\u304b\u306e\u78ba\u8a8d\u3002<\/p>\n<pre>from sympy import *\r\nfrom sympy.abc import *\r\nfrom sympy import I, pi, E\r\nplot(sin(x), (x, -2*pi, 2*pi));<\/pre>\n<p>\u3061\u306a\u307f\u306b\uff0c<a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/938\/\"><strong>Python matplotlib \u3067\u65e5\u672c\u8a9e\u8868\u793a<\/strong><\/a>\u306e\u305f\u3081\u306e\u30d5\u30a9\u30f3\u30c8\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u3002<\/p>\n<pre>plot(sin(x), (x, -2*pi, 2*pi), xlable='\u6a2a\u8ef8 x', ylabel='\u7e26\u8ef8 y', title='\u30b5\u30a4\u30f3\u95a2\u6570');<\/pre>\n<h3>\u4e0d\u5177\u5408\u306e\u72b6\u6cc1<\/h3>\n<p>\u3088\u308a\u306b\u3082\u3088\u3063\u3066\uff0c\u300c<a href=\"https:\/\/home.hirosaki-u.ac.jp\/jupyter\/sympy\/\">SymPy \u306b\u3088\u308b\u6570\u5f0f\u51e6\u7406\u3068\u30b0\u30e9\u30d5\u4f5c\u6210<\/a>\u300d\u306e\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u6700\u4e2d\u306b\uff0c\u3075\u3068\u9b54\u304c\u5dee\u3057\u3066\uff0c<code>pip install -U matplotlib<\/code> \u3057\u305f\u3089\uff0cSymPy \u306e <code>plot<\/code> \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u4e0d\u5177\u5408\u304c&#8230;<\/p>\n<pre>sympy 1.5.1\r\nmpmath 1.1.0\r\nmatplotlib 3.2.0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1073\" src=\"http:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/320-640x452.png\" alt=\"\" width=\"640\" height=\"452\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/320-640x452.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/320-300x212.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/320-768x543.png 768w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/320-360x254.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/320.png 1097w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3044\u305a\u308c\u6642\u9593\u304c\u305f\u3066\u3070\u4e0d\u5177\u5408\u306f\u89e3\u6d88\u3055\u308c\u3066\u3044\u304f\u306e\u3067\u3042\u308d\u3046\u304c\uff0c\u3068\u308a\u3042\u3048\u305a\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066 <code>matplotlib<\/code> \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30c0\u30a6\u30f3\u3067\u5bfe\u5fdc\u3002<\/p>\n<pre> pip install -U matplotlib==3.1.2<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1074\" src=\"http:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/312-640x304.png\" alt=\"\" width=\"640\" height=\"304\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/312-640x304.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/312-300x142.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/312-768x365.png 768w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/312-360x171.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/312.png 1152w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u86c7\u8db3\u306a\u304c\u3089\uff0c<code>pip install -U matplotlib<\/code> \u3059\u308b\u3068\uff0c\u305b\u3063\u304b\u304f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u8aac\u660e\u3057\u3066\u3044\u308b\u3088\u3046\u306a\uff0cmatplotlib \u3067\u65e5\u672c\u8a9e\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3082\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067\uff0c\u307e\u305f\u8a2d\u5b9a\u306e\u3057\u76f4\u3057\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u7de8\u96c6\u3057\u3066\u5bfe\u5fdc\u3059\u308b\u3068\uff0c\u30b7\u30b9\u30c6\u30e0\u30ef\u30a4\u30c9\u306a\u8a2d\u5b9a\u304c\u53ef\u80fd\u3060\u304c\uff0c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u4e0a\u66f8\u304d\u3055\u308c\u3066\u6d88\u3055\u308c\u3066\u3057\u307e\u3046\u3068\u3053\u308d\u304c\u96e3\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/938\/\">Python matplotlib \u3067\u65e5\u672c\u8a9e\u8868\u793a<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u78ba\u8a8d\u7528\u30b3\u30fc\u30c9 matplotlib \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 3.1. <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1072\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1072","post","type-post","status-publish","format-standard","hentry","category-python"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/comments?post=1072"}],"version-history":[{"count":8,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1072\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1072\/revisions\/1082"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}