[metapost] Statsmac histogram

David Arnold dwarnold45 at suddenlink.net
Sat Jan 2 05:06:02 CET 2010


Hi,

I have:

data(mine)
10,10,
20,20,20,20,20,20,
30,30,30,30,30,30,30,30,30,
40,40,40;

beginfig(1);

	interim frequencymode:=1;
	usedata(mine,x);
	setrange(0,50,10cm,0,10,3cm);
	bounds 5,15,25,35,45;
	histogram x;
	autograd;

endfig;

end.

I am using Anthony Phan's statsmac package:

http://www-math.univ-poitiers.fr/~phan/statsmac.html

mps.tar.gz

I am trying to figure a way so that the height of each bar in the histogram equals the count. So, I'd like to have the first bar have height 2, the second have height 6, the third have height 9, and the fourth have height 3.

Can anyone help?

David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20100101/062bfa68/attachment.html>


More information about the metapost mailing list