{"id":293,"date":"2011-09-30T23:26:28","date_gmt":"2011-09-30T23:26:28","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=293"},"modified":"2011-10-21T22:58:08","modified_gmt":"2011-10-21T22:58:08","slug":"simple-xy-plot-with-gnuplot","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2011\/09\/simple-xy-plot-with-gnuplot\/","title":{"rendered":"Simple XY plot with gnuplot"},"content":{"rendered":"<p>I can never remember the code to do a simple xy plot in gnuplot. So here it is:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nset size square\r\n\r\nset ylabel &quot;Population&quot;\r\nset xlabel &quot;Distance&quot;\r\n\r\nset terminal postscript eps color\r\nset output &quot;plot.eps&quot;\r\nplot &quot;data&quot; using 1:2 with lines\r\n<\/pre>\n<p>Plots an eps file called plot.eps from a file called data. data contains 2 columns, the first is the x axis the second the y.<\/p>\n<p>Change lines to points to get a scatter graph.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I can never remember the code to do a simple xy plot in gnuplot. So here it is: set size square set ylabel &quot;Population&quot; set xlabel &quot;Distance&quot; set terminal postscript eps color set output &quot;plot.eps&quot; plot &quot;data&quot; using 1:2 with lines Plots an eps file called plot.eps from a file called data. data contains 2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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}},"categories":[1],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-4J","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":2,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":521,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/293\/revisions\/521"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}