{"id":1722,"date":"2021-05-12T15:29:50","date_gmt":"2021-05-12T06:29:50","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1722"},"modified":"2021-05-12T17:23:02","modified_gmt":"2021-05-12T08:23:02","slug":"gnuplot-%e3%81%a7%e5%80%8b%e5%88%a5%e7%af%84%e5%9b%b2%e6%8c%87%e5%ae%9a%e3%81%a8%ef%bc%92%e6%9b%b2%e7%b7%9a%e9%96%93%e3%81%ae%e5%a1%97%e3%82%8a%e3%81%a4%e3%81%b6%e3%81%97","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1722\/","title":{"rendered":"gnuplot \u306e plot \u3067\u500b\u5225\u7bc4\u56f2\u6307\u5b9a\u3068\uff12\u66f2\u7dda\u9593\u306e\u9818\u57df\u3092\u5857\u308a\u3064\u3076\u3057"},"content":{"rendered":"<pre>reset\r\nunset border; unset xtics; unset ytics\r\n# \u95a2\u6570\r\nf(x) = 0.6*x + 0.4*cos(x)\r\n# \u5ea7\u6a19\u8ef8\r\nset arrow 10 from -0.2, 0 to 3.2, 0 lw 2 linecolor \"black\" size graph 0.03,20 filled head\r\nset arrow 11 from 0, -0.1 to 0, 1.3 lw 2 linecolor \"black\" size graph 0.03,20 filled head\r\n# \u30e9\u30d9\u30eb\r\nset label 10 left at first 3.25, 0 \"x\"\r\nset label 11 center at first 0, 1.38 \"y\"\r\nset label 30 left at first 2.8,1.3 \"y=f(x)\" textcolor \"blue\"\r\n\r\n# \u30b0\u30e9\u30d5\u306e\u8868\u793a\u7bc4\u56f2\u306f xrange [-0.2:3.5] \u3060\u304c...\r\n# [x=0.25:2] \u306e\u30d7\u30ed\u30c3\u30c8\u7bc4\u56f2\u3067\uff0cf(x) \u3068 x\u8ef8\u306e\u9593\u3092\u9ec4\u8272\u304f\uff08\u900f\u660e\u306b\uff09\u5857\u308a...\r\n# [x=2:2.5] \u306e\u30d7\u30ed\u30c3\u30c8\u7bc4\u56f2\u3067\uff0cf(x) \u3068 x\u8ef8\u306e\u9593\u3092\u30b0\u30ec\u30a4\u306b\uff08\u900f\u660e\u306b\uff09\u5857\u308a...\r\n# [x=0.1:2.7] \u306e\u30d7\u30ed\u30c3\u30c8\u7bc4\u56f2\u3067\uff0cf(x) \u3092\u9752\u7dda\u3067\u63cf\u304f\u3002\r\n\r\nset style fill transparent solid 0.3 noborder\r\n\r\nplot [-0.2:3.5] [-0.2:1.5] sample \\\r\n[0.25:2] f(x) with filledc above y=0 fc \"yellow\" notitle, \\\r\n[2:2.5] f(x) with filledc above y=0 fc \"gray\" notitle, \\\r\n[0.1:2.7] f(x) lw 3 linecolor \"blue\" notitle<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1723\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/a-640x480.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/a-640x480.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/a-300x225.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/a-360x270.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/a.png 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<pre>reset\r\nset zeroaxis\r\n\r\n# 2\u3064\u306e\u66f2\u7dda\u306e\u9593\u3092\u5857\u308a\u3064\u3076\u3059\u4f8b\u3002\r\n# \u30b0\u30e9\u30d5\u306e\u8868\u793a\u7bc4\u56f2\u306f xrange [-0.3:4] \u3060\u304c...\r\n# [x=0:pi\/4] \u306e\u30d7\u30ed\u30c3\u30c8\u7bc4\u56f2\u3067\uff0ccos(x) \u3068 sin(x) \u306e\u9593\u3092\u30d1\u30bf\u30fc\u30f3\u3067\u5857\u308a...\r\n# [x=0:pi] \u306e\u30d7\u30ed\u30c3\u30c8\u7bc4\u56f2\u3067\uff0csin(x) \u3092\u63cf\u304d\uff0c\r\n# [x=0:pi\/4] \u306e\u30d7\u30ed\u30c3\u30c8\u7bc4\u56f2\u3067\uff0ccos(x) \u3092\u63cf\u304f\u3002\r\n\r\nplot [-0.3:4] [-0.1:1.2] sample \\\r\n[0:pi\/4] '+' using 1:(cos($1)):(sin($1)) with filledc fill pattern 4 notitle, \\\r\n[0:pi] sin(x) lw 2 notitle , [0:pi\/4] cos(x) lw 2 notitle<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1725\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/b-640x480.png\" alt=\"\" width=\"640\" height=\"480\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/b-640x480.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/b-300x225.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/b-360x270.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/b.png 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>reset unset border; unset xtic <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1722\/\" 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":[16],"tags":[],"class_list":["post-1722","post","type-post","status-publish","format-standard","hentry","category-gnuplot"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1722","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=1722"}],"version-history":[{"count":5,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1722\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1722\/revisions\/1729"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}