Forums | Admin

Discussion Forums: ctioga

Start New Thread Start New Thread

 

By: Vincent Fourmond
RE: Space between histogram bins [ reply ]  
2011-01-31 19:53
This question has been around for a while, it seems, and the answer is that with ctioga, it is very painful. Lidija found a nice workaround, see this thread:

http://www.ruby-forum.com/topic/659861

In ctioga2, it is trivial, see
http://ctioga2.rubyforge.org/tutorial/04-axes-labels.html#pre-axes-labels-4

Unfortunately, ctioga2 does not support histograms yet.

By: gilmour page
RE: Space between histogram bins [ reply ]  
2010-12-14 21:37
Actually, I figured it out, but what if I want the bottom xaxis to have majornum but the top just major? Is there a way to cancel the override?

By: gilmour page
Space between histogram bins [ reply ]  
2010-12-14 19:43
Hello,

I'm trying to display a histogram with various bins and I have two data sets. I can get it to display each dataset side by side centered on the appropriate bin. But I'd like to have white space between each of bins so the viewer knows they are individual bins.

Here's my code:

ctioga --theme pastel --no-title \
--xrange 45:135 --yrange 0.0:0.38 \
-x 'Grade Percentage' -y 'Percentage of Students' \
--xaxis majornum --xaxis bottom \
--hist y-axis --fill y-axis --fill-transparency 0.4 \
--hist-right 0.5 -l 'Class 1' grades_distribution.data@1:2 \
--hist-left 1.0 -l 'Class 2' grades_distribution.data@1:3 />

Many thanks!