File: histograms.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (78 lines) | stat: -rw-r--r-- 3,456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<HTML>
<HEAD>
<TITLE>Histograms</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+2" color="green">Histograms</font></P>
<P>
 It is possible to draw four types of histograms using the
 <a href="../Characteristics/PlottingSymbol/histogramtype.htm"><CODE>HISTOGRAMTYPE</CODE></a>
 characteristic approach, or you can use the <CODE>\HISTOGRAM</CODE> qualifier to plot a histogram
 with tails to <i>y=0</i> and profile along the <i>x</i>-axis.</p>
<P>
 <font size="+1" color="green">Using the <TT>HISTOGRAMTYPE</TT> characteristic</font></P>
<P>
 The table below shows the histogram type that will be produced depending on the value of
 <CODE>HISTOGRAMTYPE</CODE>.</P>
<p>
 <center>
 <table border="1" cols="2">
 <tr>
 <td><CODE>HISTOGRAMTYPE</CODE></td>
 <td align="center"><em>result</em></td></tr>
 <tr><td align="center"><CODE>0</CODE></td><td>(default value) line graph, not a histogram</td>
 </tr><tr>
 <td align="center"><CODE>1</CODE></td>
 <td valign="top">histogram with no tails and profile along the <I>x</I>-axis<br />
  May control the width and colour individual bars</td>
 </tr><tr>
 <td align="center"><CODE>2</CODE></td>
 <td valign="top">histogram with tails to <I>y=0</I> and profile along the <I>x</I>-axis<br />
  May control the fill pattern, width, colour of each bar</td>
 </tr><tr>
 <td align="center"><CODE>3</CODE></td>
 <td valign="top">histogram without tails and profile along the <I>y</I>-axis<br />
  May control the height and colour of each bar
 </tr><tr>
 <td align="center"><CODE>4</CODE></td>
 <td valign="top">histogram with tails to <I>x=0</I> and profile along the <I>y</I>-axis<br />
  May control the fill pattern, height, colour of each bar</td>
 </tr></table></center></p>
<P>
 <font size="+1" color="green">Using the <TT>\HISTOGRAM</TT> qualifier</font></P>
<P>
 The <CODE>\HISTOGRAM</CODE> qualifier is inconsistent when used in conjunction with the
 <CODE>\AXESONLY</CODE> qualifier.</P>
<P>
 Using the <CODE>\HISTOGRAM</CODE> qualifier is equivalent to using a <CODE>HISTOGRAMTYPE</CODE>
 setting of <CODE>2</CODE>.  A histogram with tails to <i>y=0</i> and profile
 along the <i>x</i>-axis will be plotted. The following three commands:</P>
<p>
 <font color="blue"><PRE>
 SET HISTOGRAMTYPE 2       ! force histogram plotting
 GRAPH X Y                 ! plot axes and histogram
 SET HISTOGRAMTYPE 0       ! reset to default value
 </PRE></font>
<P>
 are equivalent to the single command:</P>
 <font color="blue"><Pre>
 GRAPH\HIST X Y</pre></font>
<P>
 <font size="+1" color="green">Filling</font></P>
<P>
 For information on how to fill the area under a histogram, see the
 <CODE><a href="../Characteristics/GeneralGraph/areafillcolor/areafillcolor.htm">AREAFILLCOLOR</a></CODE>
 characteristic. For histograms with tails, types <code>2</code> and <code>4</code>, it is possible to
 fill each histogram bar with a different color. For types <code>1</code> and <code>3</code>,
 the area under a histogram can be filled with a single color.</P>
<P>
 For an example of various types of filled histograms see the
 <a href="../Characteristics/GeneralGraph/areafillcolor/example2.htm">histogram example</a>.</P>
<P>
 <a href="replotdata.htm"><img src="../shadow_left.gif">&nbsp;
 <font size="+1" color="olive">Replot data on a common scale</font></a><br />
 <a href="errorbars.htm"><img src="../shadow_right.gif">&nbsp;
 <font size="+1" color="olive">Error bars</font></a></P>
</BODY>
</HTML>