{"id":1707,"date":"2020-06-25T22:23:25","date_gmt":"2020-06-25T14:23:25","guid":{"rendered":"https:\/\/people.utm.my\/yap\/?page_id=1707"},"modified":"2020-06-25T23:20:09","modified_gmt":"2020-06-25T15:20:09","slug":"terminals-how-does-gnuplot-works","status":"publish","type":"page","link":"https:\/\/people.utm.my\/yap\/terminals-how-does-gnuplot-works\/","title":{"rendered":"Terminals &#8211; How does Gnuplot works?"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p style=\"text-align: right\"><span style=\"font-size: 12pt\">(<a href=\"https:\/\/people.utm.my\/yap\/plotting-and-fitting-using-gnuplot\/\">Back to index page<\/a>)<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Firstly, you should how Gnuplot works..<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Imagine Gnuplot is connected to a &#8220;printer&#8221;.. This &#8220;printer&#8221; is called a <strong>terminal.<\/strong><\/span><\/p>\n<p><span style=\"font-size: 12pt\">This terminal can be anything and you can change this terminal using the following command:<\/span><\/p>\n<p><span style=\"font-size: 12pt;color: #0000ff\">&gt;&gt; set terminal &#8230;.. &#8230;. &#8230;.. &#8230;\u00a0<\/span><\/p>\n<p><span style=\"font-size: 12pt\">You can set your terminal to your\u00a0 current &#8220;<em>monitor display<\/em>&#8221; (this terminal called &#8220;windows&#8221;)<\/span><\/p>\n<p><span style=\"font-size: 12pt\">There is another &#8220;<em>monitor display<\/em>&#8221; called &#8220;wxt&#8221;.<\/span><\/p>\n<p><span style=\"font-size: 12pt\">So, you can change switch to these terminals using this commands:<\/span><\/p>\n<p><span style=\"font-size: 12pt;color: #0000ff\">&gt;&gt; set terminal windows<\/span><\/p>\n<p><span style=\"font-size: 12pt;color: #0000ff\">&gt;&gt; set terminal wxt<\/span><\/p>\n<p><span style=\"font-size: 12pt\">These commands will change the terminals that are displayed on your monitor.\u00a0 They have different colours, buttons, etc..<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Each terminal may have a different function<\/span><\/p>\n<p><span style=\"font-size: 12pt\">So, if you want to plot something, <span style=\"color: #ff0000\"><strong>be sure to set your terminals first. <\/strong><\/span><\/span><\/p>\n<p><span style=\"font-size: 12pt\">If you set the terminal after plotting, it will not have any effect. Imagine this analogy:<\/span><\/p>\n<blockquote><p><span style=\"font-size: 12pt\">&#8220;Pressing the print button in MS Word and <em>only after that<\/em> you turn on the printer power&#8221;<\/span><\/p><\/blockquote>\n<hr \/>\n<h2>Saving to a file<\/h2>\n<p><span style=\"font-size: 12pt\"><strong>Instead of a monitor display<\/strong>, you can also change the terminal to a file.<\/span><\/p>\n<p><span style=\"font-size: 12pt\">There are options to save your file to JPEG or EPS or LaTeX,<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Here are some of the available terminals:<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal wxt<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal windows<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal jpeg<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal postcript<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal epslatex<\/span><\/li>\n<li style=\"list-style-type: none\"><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">For the full list of terminals, please refer to gnuplot documentation (<a href=\"http:\/\/www.gnuplot.info\/docs_5.5\/gnuplot.pdf#page=208&amp;zoom=100,96,186\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.gnuplot.info\/docs_5.5\/gnuplot.pdf#page=208&amp;zoom=100,96,186<\/a>)<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Each terminal can have their own properties (called &#8220;options&#8221;).<\/span><\/p>\n<p><span style=\"font-size: 12pt\">Here are the typical settings for each terminal that I normally use:<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal jpeg enhanced font Times 28 size 1600,1200<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal postscript eps color lw 15 &#8220;Helvetica&#8221; 20<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set terminal epslatex color<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set term wxt font &#8220;Arial,12&#8221;<\/span><\/li>\n<li><span style=\"font-size: 12pt;color: #0000ff\">set term windows font &#8220;Arial,12&#8221;<\/span><\/li>\n<\/ul>\n<p style=\"text-align: right\"><span style=\"font-size: 12pt\">(<a href=\"https:\/\/people.utm.my\/yap\/plotting-and-fitting-using-gnuplot\/\">Back to index page<\/a>)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; (Back to index page) Firstly, you should how Gnuplot works.. Imagine Gnuplot is connected to a &#8220;printer&#8221;.. This &#8220;printer&#8221; is called a terminal. This terminal can be anything and you can change this terminal using the following command: &gt;&gt; set terminal &#8230;.. &#8230;. &#8230;.. &#8230;\u00a0 You can set your terminal to your\u00a0 current &#8220;monitor [&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-1707","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages\/1707","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=1707"}],"version-history":[{"count":13,"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages\/1707\/revisions"}],"predecessor-version":[{"id":1730,"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/pages\/1707\/revisions\/1730"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/yap\/wp-json\/wp\/v2\/media?parent=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}