This file is indexed.

/usr/share/doc/pyxplot/html/sec-barcharts.html is in pyxplot-doc 0.8.4-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Barcharts and Histograms</title>

<link href="sect0047.html" title="Steps" rel="next" />
<link href="sect0046.html" title="Shaded Regions" rel="prev" />
<link href="sec-list_of_plotstyles.html" title="PyXPlot’s Plot Styles" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>

<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0046.html" title="Shaded Regions"><img alt="Previous: Shaded Regions" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="sec-list_of_plotstyles.html" title="PyXPlot’s Plot Styles"><img alt="Up: PyXPlot’s Plot Styles" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sect0047.html" title="Steps"><img alt="Next: Steps" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sect0043.html">Plotting and Vector Graphics</a> <b>:</b>
</span>

</span><span>
<span>
<a href="ch-plotting.html">Plotting: A Detailed Survey</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sec-list_of_plotstyles.html">PyXPlot’s Plot Styles</a> <b>:</b>
</span>

</span><span>

<span>
<b class="current">Barcharts and Histograms</b>
</span>
</span>
<hr />
</div>

<div><h2 id="sec:barcharts">1.2.4 Barcharts and Histograms</h2>
<p>  <a name="a0000000677" id="a0000000677"></a> </p><p>The following plot styles allow barcharts to be produced: </p><ul class="itemize">
<li><p><tt class="tt">boxes</tt><a name="a0000000678" id="a0000000678"></a><a name="a0000000679" id="a0000000679"></a> </p></li><li><p><tt class="tt">impulses</tt><a name="a0000000680" id="a0000000680"></a><a name="a0000000681" id="a0000000681"></a> </p></li><li><p><tt class="tt">wboxes</tt><a name="a0000000682" id="a0000000682"></a><a name="a0000000683" id="a0000000683"></a> </p></li>
</ul><p> These styles differ in where the horizontal interfaces between the bars are placed along the abscissa axis and how wide the bars are. In the <tt class="tt">boxes</tt><a name="a0000000684" id="a0000000684"></a><a name="a0000000685" id="a0000000685"></a> plot style, the interfaces between the bars are at the midpoints between the specified datapoints by default (see, for example, Figure <a href="sec-barcharts.html#fig:ex_barchart2">1.1</a>a). Alternatively, the widths of the bars may be set using the <tt class="tt">set boxwidth</tt> command. In this case, all of the bars will be centred upon their specified <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />-coordinates, and have total widths equalling that specified in the <tt class="tt">set boxwidth</tt> command<a name="a0000000686" id="a0000000686"></a>. Consequently, there may be gaps between them, or they may overlap, as seen in Figure <a href="sec-barcharts.html#fig:ex_barchart2">1.1</a>(b). </p><div id="fig:ex_barchart2" class="figure"><center> 
<img src="images/img-0389.png" alt="\includegraphics[width=\textwidth ]{examples/eps/ex_barchart2}" style="width:" /> </center><div class="caption"><b>Figure 1.1</b>: <span>A gallery of the various bar chart styles which PyXPlot can produce. See the text for more details. The script and data file used to produce this image are available on the PyXPlot website at http://www.pyxplot.org.uk/examples/Manual/04barchart2/.</span></div></div><p>Having set a fixed box width, the default behaviour of scaling box widths automatically may be restored either with the <tt class="tt">unset boxwidth</tt> command, or by setting the boxwidth to a negative width. </p><p>In the <tt class="tt">wboxes</tt><a name="a0000000687" id="a0000000687"></a><a name="a0000000688" id="a0000000688"></a> plot style, the width of each bar is specified manually as an additional column of the input datafile. This plot style expects three columns of data to be provided: the <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />- and <img src="images/img-0020.png" alt="$y$" style="vertical-align:-4px; 
                                     width:9px; 
                                     height:12px" class="math gen" />-coordinates of each bar in the first two, and the width of the bars in the third. Figure <a href="sec-barcharts.html#fig:ex_barchart2">1.1</a>(c) shows an example of this plot style in use. </p><p>Finally, in the <tt class="tt">impulses</tt><a name="a0000000689" id="a0000000689"></a><a name="a0000000690" id="a0000000690"></a> plot style, the bars all have zero width; see Figure <a href="sec-barcharts.html#fig:ex_barchart1">1.2</a>(c) for an example. </p><p>In all of these plot styles, the bars originate from the line <img src="images/img-0391.png" alt="$y=0$" style="vertical-align:-4px; 
                                     width:42px; 
                                     height:16px" class="math gen" /> by default, as is normal for a histogram. However, should it be desired for the bars to start from a different vertical line, this may be achieved by using the <tt class="tt">set boxfrom</tt> command<a name="a0000000691" id="a0000000691"></a>, for example: </p><pre>
set boxfrom 5
</pre><p>In this case, all of the bars would now originate from the line <img src="images/img-0392.png" alt="$y=5$" style="vertical-align:-4px; 
                                     width:41px; 
                                     height:17px" class="math gen" />. Figure <a href="sec-barcharts.html#fig:ex_barchart1">1.2</a>(b) shows the kind of effect that is achieved; for comparison, Figure <a href="sec-barcharts.html#fig:ex_barchart1">1.2</a>(a) shows the same bar chart with the boxes starting from their default position of <img src="images/img-0391.png" alt="$y=0$" style="vertical-align:-4px; 
                                     width:42px; 
                                     height:16px" class="math gen" />. </p><div id="fig:ex_barchart1" class="figure"><center> 
<img src="images/img-0394.png" alt="\includegraphics[width=\textwidth ]{examples/eps/ex_barchart1}" style="width:" /> </center><div class="caption"><b>Figure 1.2</b>: <span>A second gallery of the various bar chart styles which PyXPlot can produce. See the text for more details. The script and data file used to produce this image are available on the PyXPlot website at http://www.pyxplot.org.uk/examples/Manual/03barchart1/.</span></div></div><p>The bars may be filled using the <tt class="tt">with</tt> <tt class="tt">fillcolour</tt><a name="a0000000692" id="a0000000692"></a> modifier, followed by the name of a colour: </p><pre>
plot 'data.dat' with boxes fillcolour blue
plot 'data.dat' with boxes fc 4
</pre><p>Figures <a href="sec-barcharts.html#fig:ex_barchart2">1.1</a>(b) and (d) demonstrate the use of filled bars. </p><p>The <tt class="tt">boxes</tt> and <tt class="tt">wboxes</tt> plot styles expect identically-formatted data when used on two- and three-dimensional plots; in the latter case, all bars are drawn in the plane <img src="images/img-0396.png" alt="$z=0$" style="vertical-align:0px; 
                                     width:42px; 
                                     height:12px" class="math gen" />. The <tt class="tt">impulses</tt> plot style takes an additional column of data on three-dimensional plots, specifying the <img src="images/img-0101.png" alt="$z$" style="vertical-align:0px; 
                                     width:9px; 
                                     height:8px" class="math gen" />-coordinate at which each impulse should be drawn. </p><h3 id="a0000000693">Stacked Bar Charts</h3>
<p>If multiple datapoints are supplied to the <tt class="tt">boxes</tt><a name="a0000000694" id="a0000000694"></a><a name="a0000000695" id="a0000000695"></a> or <tt class="tt">wboxes</tt><a name="a0000000696" id="a0000000696"></a><a name="a0000000697" id="a0000000697"></a> plot styles at a common <img src="images/img-0019.png" alt="$x$" style="vertical-align:0px; 
                                     width:10px; 
                                     height:8px" class="math gen" />-coordinate, then the bars are stacked one above another into a stacked barchart. Consider the following datafile: </p><pre>
1 1
2 2
2 3
3 4
</pre><p>The second bar at <img src="images/img-0397.png" alt="$x=2$" style="vertical-align:0px; 
                                     width:43px; 
                                     height:12px" class="math gen" /> would be placed on top of the first, spanning the range <img src="images/img-0398.png" alt="$2&lt;y&lt;5$" style="vertical-align:-4px; 
                                     width:74px; 
                                     height:17px" class="math gen" />, and having the same width as the first. If plot colours are being automatically selected from the palette, then a different palette colour is used to plot the upper bar. </p></div>





<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0046.html" title="Shaded Regions"><img alt="Previous: Shaded Regions" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="sec-list_of_plotstyles.html" title="PyXPlot’s Plot Styles"><img alt="Up: PyXPlot’s Plot Styles" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sect0047.html" title="Steps"><img alt="Next: Steps" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0255.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>

</body>
</html>