This file is indexed.

/usr/include/openturns/swig/BarPlot_doc.i is in libopenturns-dev 1.7-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
%feature("docstring") OT::BarPlot
"BarPlot.

Available constructors:
    BarPlot(*data, origin, legend=' '*)

    BarPlot(*data, origin, color, fillStyle, lineStyle, legend=' '*)

    BarPlot(*data, origin, color, fillStyle, lineStyle, lineWidth, legend=' '*)

Parameters
----------
data : 2-d sequence of float
    Data from which the BarPlot is built, must be of dimension 2: the
    discontinuous points and their corresponding height.
origin : float
    Scalar defining where the BarPlot begins.
legend : str
    Legend of the BarPlot.
color : str
    Color of the curve. If not specified, by default it is 'blue'.
fillStyle : str
    Fill style of the surfaces. If not specified, by default it is 'solid'.
lineStyle : str
    Style of the curve. If not specified, by default it is 'solid'.
lineWidth : int
    Width of the curve. If not specified, by default it is 1.

Examples
--------
>>> import openturns as ot
>>> from math import floor
>>> # Create data
>>> myDistribution = ot.Normal(0.5, 2.)
>>> sample = myDistribution.getSample(100)
>>> minSample = sample.getMin()[0]
>>> maxSample = sample.getMax()[0] + 0.1
>>> nBars = 10
>>> data = ot.NumericalSample(nBars, [(maxSample - minSample) / nBars, 0])
>>> for i in range(100):
...     index = int(floor((sample[i, 0] - minSample) / (maxSample - minSample) * nBars))
...     data[index, 1] += 1
>>> # Create an empty graph
>>> myGraph = ot.Graph('A barplot', 'Realizations', 'Frequency', True, 'topright')
>>> # Create the barplot
>>> myBarPlot = ot.BarPlot(data, data.getMin()[0], 'red', 'shaded', 'dashed', 'Normal histogram')
>>> myGraph.add(myBarPlot)"