{"id":381,"date":"2005-12-09T17:25:12","date_gmt":"2005-12-09T21:25:12","guid":{"rendered":"http:\/\/www.uvm.edu\/~waw\/blog\/?p=381"},"modified":"2005-12-09T17:25:12","modified_gmt":"2005-12-09T21:25:12","slug":"jpgraph-for-emily","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/waw\/2005\/12\/09\/jpgraph-for-emily\/","title":{"rendered":"jpgraph for Emily"},"content":{"rendered":"<p>Emily wanted to know how to do <a href=\"http:\/\/www.uvm.edu\/~waw\/barplot.php\">this<\/a>.<\/p>\n<p>See <a href=\"http:\/\/www.uvm.edu\/~waw\/jpgraph\/docs\/html\/manual_jpgraph.html#7_2_8\">here<\/a> for horizontal bars documentation<\/p>\n<p>&nbsp;&nbsp; <br \/>See <a href=\"http:\/\/www.uvm.edu\/~waw\/jpgraph\/docs\/html\/manual_jpgraph.html#7_19_5\">here<\/a> for reversed axis documentation<\/p>\n<p>&nbsp;&nbsp;&nbsp; <\/p>\n<p>I couldn&#8217;t get $bplot-&gt;SetWidth() to work, so used SetAbsWidth<\/p>\n<p>Needed to stagger X axis values so bars didn&#8217;t overlap, so first series plotted at 0,2,4,6,8&#8230; and second at 1,3,5,7,9&#8230;<\/p>\n<p>Once x axis data introduced to new Barplot, seems like rolls reversed, thus this<\/p>\n<p>&nbsp;&nbsp;&nbsp; $bplot1 = new BarPlot($datay1,$datax1);<\/p>\n<p>rather than this<\/p>\n<p>&nbsp;&nbsp;&nbsp; $bplot1 = new BarPlot($datax1,$datay1);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Emily wanted to know how to do this. See here for horizontal bars documentation &nbsp;&nbsp; See here for reversed axis documentation &nbsp;&nbsp;&nbsp; I couldn&#8217;t get $bplot-&gt;SetWidth() to work, so used SetAbsWidth Needed to stagger X axis values so bars didn&#8217;t &hellip; <a href=\"https:\/\/blog.uvm.edu\/waw\/2005\/12\/09\/jpgraph-for-emily\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6517,8025],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-projects","category-scriptingprogramming"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":0,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/waw\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}