{"id":333,"date":"2011-10-02T23:59:51","date_gmt":"2011-10-02T23:59:51","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=333"},"modified":"2011-10-02T23:59:51","modified_gmt":"2011-10-02T23:59:51","slug":"grabbing-environment-variables-in-gnuplot","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2011\/10\/grabbing-environment-variables-in-gnuplot\/","title":{"rendered":"Grabbing environment variables in gnuplot"},"content":{"rendered":"<p>set environment variables from bash e.g:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport positionsfile=&quot;$outputfile&quot;.positions\r\nexport rankprogressfile=&quot;$outputfile&quot;\r\n<\/pre>\n<p>Then use them from gnuplot e.g.:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nset size 1,1\r\nset ylabel &quot;Count&quot;\r\nset xlabel &quot;Positions&quot;\r\n\r\nset terminal postscript eps color\r\nset output &quot;`echo $positionsfile`.eps&quot;\r\n\r\nplot &quot;`echo $positionsfile`&quot; using 1:2 with lines\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>set environment variables from bash e.g: export positionsfile=&quot;$outputfile&quot;.positions export rankprogressfile=&quot;$outputfile&quot; Then use them from gnuplot e.g.: set size 1,1 set ylabel &quot;Count&quot; set xlabel &quot;Positions&quot; set terminal postscript eps color set output &quot;`echo $positionsfile`.eps&quot; plot &quot;`echo $positionsfile`&quot; using 1:2 with lines<\/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-333","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-5n","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/333","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=333"}],"version-history":[{"count":1,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/333\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}