| > | restart: read `C:\\Tanis-Hogg\\Maple Examples\\stat.m`: with(plots): read `C:\\Tanis-Hogg\\Maple Examples\\HistogramFill.txt`: |
Elliot Tanis
June 12, 2006
Example 3.1-1 (Example_3_1-1.mws)
| > | read `C:\\Tanis-Hogg\\Maple Examples\\Chapter_03.txt`: |
| > | X := Example_3_1_1; |
| > | Min(X), Max(X); |
| > | ClassFreq(X,20.45 .. 26.75, 7); |
| > | xtics := [seq(20.9 + 0.9*k, k = 0 .. 6)]: P1 := plot([[20.1,0],[20.1,0]], x = 20.1 .. 27, y = 0 .. 0.25, xtickmarks=xtics, labels=[``,``]): P2 := HistogramFill(X,20.45 .. 26.75, 7): txt1 := textplot([27,0, `x`], font=[TIMES,ITALIC,12],align={ABOVE,RIGHT}): txt2 := textplot([20.1,0.25, `h(x)`], font=[TIMES,ITALIC, 12],align={ABOVE,RIGHT}): display({P1, P2,txt1, txt2}); |
Figure 3.1-1: Relative Frequency Histogram of Weights of Candy Bars
| > |