{"id":502,"date":"2013-02-02T16:19:36","date_gmt":"2013-02-02T08:19:36","guid":{"rendered":"http:\/\/systemsci.org\/jinshanw\/?p=502"},"modified":"2013-02-02T16:19:36","modified_gmt":"2013-02-02T08:19:36","slug":"gnuplot%e7%9a%84%e5%a6%99%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.systemsci.org\/jinshanw\/2013\/02\/02\/gnuplot%e7%9a%84%e5%a6%99%e7%94%a8\/","title":{"rendered":"gnuplot\u7684\u5999\u7528"},"content":{"rendered":"<p>\u7528\u6279\u5904\u7406\u547d\u4ee4\u751f\u6210\u51fa\u7248\u8d28\u91cf\u7684\u56fe\u7247\u8981\u6bd4\u70b9\u9f20\u6807\u597d\u5f88\u591a\u3002\u4f46\u662f\uff0c\u56fe\u7247\u4e2d\u63d2\u5165\u4e2d\u6587\u4ee5\u53ca\u516c\u5f0f\uff0c\u7531\u4e8e\u5b57\u4f53\u7684\u95ee\u9898\u7ecf\u5e38\u4f1a\u6bd4\u8f83\u56f0\u96be\u3002<\/p>\n<p>\u4eca\u5929\u53d1\u73b0\u4e00\u4e2a\u597d\u7684\u65b9\u6cd5\uff1a\u5229\u7528gnuplot\u7684epslatex terminal\uff0c\u7136\u540e\u7528LaTeX\u6216\u8005xeLaTeX\u7f16\u8bd1\uff0c\u63a5\u7740dvips -E\u751f\u6210eps\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u7528LaTeX\u516c\u5f0f\u548cxeLaTeX\u7684\u5b57\u4f53\u4e86\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<ol>\n<li>\u7f16\u8f91\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6testEpslatex.plt\u5982\u4e0b<\/li>\n<p>set term epslatex standalone color<br \/>\nset output &#8216;test.tex&#8217;<br \/>\nset xlabel &#8216;x&#8217;<br \/>\nset ylabel &#8216;$f\\left(x\\right)$&#8217;<br \/>\nf(x)=exp(x) #just as an example<br \/>\nplot f(x) w l title &#8220;$e^{x}$&#8221;<br \/>\nset output<br \/>\nunset key<\/p>\n<li>\u7136\u540e\u8fd0\u884c\uff08\u53ef\u4ee5\u7528makefile\uff0cmake testEpsLatex\uff09<\/li>\n<p>testEpslatex\uff1a testEpslatex.plt<br \/>\n        .\/testEpslatex.plt<br \/>\n    latex test.tex #latex can be replaced by xelatex<br \/>\n    latex test.tex<br \/>\n    dvips -E test.dvi<br \/>\n    mv test.ps BACKUP.eps #better to get a unoccupied name<br \/>\n    rm test.*<br \/>\n    rm test-inc.eps<br \/>\n    mv test.ps test.eps\n<\/ol>\n<p>\u5c31\u80fd\u591f\u5f97\u5230test.eps\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u6279\u5904\u7406\u547d\u4ee4\u751f\u6210\u51fa\u7248\u8d28\u91cf\u7684\u56fe\u7247\u8981\u6bd4\u70b9\u9f20\u6807\u597d\u5f88\u591a\u3002\u4f46\u662f\uff0c\u56fe\u7247\u4e2d\u63d2\u5165\u4e2d\u6587\u4ee5\u53ca\u516c\u5f0f\uff0c\u7531\u4e8e\u5b57\u4f53\u7684\u95ee\u9898\u7ecf\u5e38\u4f1a\u6bd4\u8f83\u56f0\u96be\u3002  &hellip; <a href=\"https:\/\/www.systemsci.org\/jinshanw\/2013\/02\/02\/gnuplot%e7%9a%84%e5%a6%99%e7%94%a8\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cgnuplot\u7684\u5999\u7528\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/502"}],"collection":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/comments?post=502"}],"version-history":[{"count":0,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/502\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/categories?post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/tags?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}