{"id":13,"date":"2006-06-17T13:05:55","date_gmt":"2006-06-17T11:05:55","guid":{"rendered":"http:\/\/elektroink.de\/2006\/06\/17\/plotten-mit-gnuplot-mit-parameterdatei\/"},"modified":"2009-06-27T09:51:27","modified_gmt":"2009-06-27T09:51:27","slug":"plotten-mit-gnuplot-mit-parameterdatei","status":"publish","type":"post","link":"https:\/\/transistorgrab.de\/en\/2006\/06\/17\/plotten-mit-gnuplot-mit-parameterdatei\/","title":{"rendered":"Plotting With Gnuplot And Parameter File"},"content":{"rendered":"<p>How do I set up Gnuplot so that the ouput will be safed to a file, what parameters influence the output.<\/p>\n<p>#Title of the plotdes<br \/>\nset title &#8220;Verbrauchsdaten Strom und Gas&#8221;<br \/>\n#Title of the x-axis<br \/>\nset xlabel &#8220;Monat&#8221;<br \/>\n#Title of the y-axis<br \/>\nset ylabel &#8220;Strom-\/Gasverbrauch in kWh&#8221;<\/p>\n<p>#the x-axis is formatted as a date<br \/>\nset xdata time<br \/>\n#the data format for the x-axis data is &#8220;06\/2006&#8221;<br \/>\nset timefmt &#8220;%m\/%Y&#8221;<br \/>\n#the label of the x-axis shall be in the form of &#8220;Jun 06&#8221;<br \/>\nset format x &#8220;%b %y&#8221;<br \/>\n#the y-axis shall have 5 subdivisions of the main tics<br \/>\nset mytics 5<br \/>\n#on the x-axis only the months 07\/2005 till 06\/2006 shall be displayed<br \/>\nset xrange[&#8220;07\/2005&#8243;:&#8221;06\/2006&#8221;]<br \/>\n#the grid shall be behind the plotted data<br \/>\nset grid back<br \/>\n#the line width of the main grid shall be 2, of the sub grid 0,5<br \/>\nset grid mytics lw 2, lw .5<br \/>\n#for the x-axis no grid is displayed<br \/>\nset grid noxtics<br \/>\n#the data will be displayed as boxes which are 80% wide<br \/>\nset boxwidth 0.8 relative<br \/>\n#the boxes will be filled with a 25% intensity<br \/>\nset style fill solid .25<br \/>\n#the legend will be displayed left of the plot<br \/>\nset key left<br \/>\n#output to pdf file<br \/>\nset terminal pdf<br \/>\n#output file will be named &#8220;strom_und_gasverbrauch.pdf&#8221;<br \/>\nset output &#8216;strom_und_gasverbrauch.pdf&#8217;<\/p>\n<p>#input data is in file &#8220;strom_und_gasverbrauch.csv&#8221;,<br \/>\n#for Gasverbrauch column 2 is x-axis and<br \/>\n# column 7 isy-axis<br \/>\n# in legend the plot will be described as &#8216;Gasverbrauch&#8217;,<br \/>\n# it will be display as box with color 3<br \/>\n# the second plot uses column 2 and 4 is labeled &#8216;Stromverbrauch&#8217;<br \/>\n# will be displayed as box and with color 1<br \/>\nplot\\<br \/>\n&#8216;strom_und_gasverbrauch.csv&#8217; u 2:7 title &#8216;Gasverbrauch&#8217; w boxes fs 3,\\<br \/>\n&#8216;strom_und_gasverbrauch.csv&#8217; u 2:4 title &#8216;Stromverbrauch&#8217; w boxes fs 1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How do I set up Gnuplot so that the ouput will be safed to a file, what parameters influence the output. #Title of the plotdes set title &#8220;Verbrauchsdaten Strom und Gas&#8221; #Title of the x-axis set xlabel &#8220;Monat&#8221; #Title of the y-axis set ylabel &#8220;Strom-\/Gasverbrauch in kWh&#8221; #the x-axis is formatted as a date set &hellip; <a href=\"https:\/\/transistorgrab.de\/en\/2006\/06\/17\/plotten-mit-gnuplot-mit-parameterdatei\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Plotting With Gnuplot And Parameter File<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[11],"tags":[30],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-plotprogramme","tag-gnuplot"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8KIDw-d","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":0,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/transistorgrab.de\/en\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}