{"id":1035,"date":"2017-09-11T23:21:32","date_gmt":"2017-09-11T15:21:32","guid":{"rendered":"http:\/\/people.utm.my\/yap\/?page_id=1035"},"modified":"2020-06-25T23:28:40","modified_gmt":"2020-06-25T15:28:40","slug":"plotting-and-fitting-using-gnuplot","status":"publish","type":"page","link":"https:\/\/people.utm.my\/yap\/plotting-and-fitting-using-gnuplot\/","title":{"rendered":"Plotting and Fitting using Gnuplot"},"content":{"rendered":"<p><span style=\"font-size: 12pt\">Gnuplot is a command-line program that is used mainly for plotting data. \u00a0It is my favourite plotting program that I have been using since my undergraduate days..<\/span><\/p>\n<p><span style=\"font-size: 12pt\">I have been collecting commands that I frequently use into a text file.<\/span><br \/>\n<span style=\"font-size: 12pt\"> Here, I have decided to help share a few basic examples that I hope can benefit you..<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Before starting, i strongly suggest you to write your commands into a notepad file..<br \/>\n<span style=\"font-size: 12pt\"><strong><span style=\"color: #ff0000\">Typically, i would save it as a [.plt] file but you can also save it as a [.txt] file.<\/span><\/strong><br \/>\n<span style=\"font-size: 12pt\">Using this file, you can load it into gnuplot but first, make sure you change the folder location.<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 12pt\"><span style=\"color: #0000ff\">gnuplot &gt; cd &#8216;c:\\windows\\user\\desktop&#8217;<\/span><br \/>\n<span style=\"font-size: 12pt\"><span style=\"color: #0000ff\">gnuplot &gt; load &#8216;filename.plt&#8217;<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 12pt\">Lessons:<\/span><\/p>\n<ol>\n<li><span style=\"font-size: 12pt\"><a href=\"https:\/\/people.utm.my\/yap\/terminals-how-does-gnuplot-works\/\">Terminals &#8211; How does Gnuplot works?<\/a><\/span><\/li>\n<li><span style=\"font-size: 12pt\"><a href=\"https:\/\/people.utm.my\/yap\/plotting-function-in-gnuplot\/\">Plotting Functions or Equations in Gnuplot<\/a><\/span><\/li>\n<li><span style=\"font-size: 12pt\"><a href=\"https:\/\/people.utm.my\/yap\/importing-data-into-gnuplot\/\">Importing Data into Gnuplot<\/a><\/span><\/li>\n<li><span style=\"font-size: 12pt\"><a href=\"https:\/\/people.utm.my\/yap\/plotting-data-in-gnuplot\/\">Plotting Data in Gnuplot<\/a><\/span><\/li>\n<li><span style=\"font-size: 12pt\"><a href=\"https:\/\/people.utm.my\/yap\/adding-labels\/\">Adding labels\u00a0<\/a><\/span><\/li>\n<li><span style=\"font-size: 12pt\"><span style=\"font-size: 12pt\"><a href=\"https:\/\/people.utm.my\/yap\/linear-fitting-with-hookes-law\/\" rel=\"noopener\">Linear fitting with\u00a0Hooke&#8217;s Law<\/a><\/span><\/span><\/li>\n<li><span style=\"font-size: 12pt\">Non-linear fitting for a non-periodic signal<\/span><\/li>\n<li><span style=\"font-size: 12pt\">Non-linear fitting for a decaying, single frequency with DC offset.<\/span><\/li>\n<li><span style=\"font-size: 12pt\">Non-linear fitting for a decaying, multi-frequency with DC offset.<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gnuplot is a command-line program that is used mainly for plotting data. \u00a0It is my favourite plotting program that I have been using since my undergraduate days.. I have been collecting commands that I frequently use into a text file. Here, I have decided to help share a few basic examples that I hope can [&hellip;]<\/p>\n","protected":false},"author":14205,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-1035","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/users\/14205"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/comments?post=1035"}],"version-history":[{"count":15,"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages\/1035\/revisions"}],"predecessor-version":[{"id":1742,"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages\/1035\/revisions\/1742"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/media?parent=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}