This file is indexed.

/usr/include/openturns/swig/Pie_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
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
%feature("docstring") OT::Pie
"Pie.

Available constructors:
    Pie(*data*)

    Pie(*data, labels*)

    Pie(*data, labels, center, radius, palette*)

Parameters
----------
data : sequence of float
    Sequence giving the percentiles of the pie.
labels : sequence of str
    Names of each group. If not specified, by default equal to the description
    of the probabilistic input vector.
center : sequence of float
    Center of the pie inside the bounding box. If not specified, by default it
    is (0,0).
radius : positive float
    Radius of the pie. If not specified, by default it is 1.
palette : sequence of str
    Names of the colors. If not specified, colors are successively taken from
    the list given by :meth:`buildDefaultPalette`, in the same order.

Examples
--------
>>> import openturns as ot
>>> # Create the Pie
>>> myPie = ot.Pie([.4, .3, .2, .1], ['a0', 'a1', 'a2', 'a3'])
>>> # Create an empty graph
>>> myGraph = ot.Graph('A Pie', ' ', ' ', True, '')
>>> myGraph.add(myPie)"

// ---------------------------------------------------------------------

%feature("docstring") OT::Pie::buildDefaultLabels
"Build default labels by taking the percentiles."

// ---------------------------------------------------------------------

%feature("docstring") OT::Pie::buildDefaultPalette
"Build default palette.

Call :meth:`BuildDefaultPalette` with :math:`n` the size of *data* as argument."

// ---------------------------------------------------------------------

%feature("docstring") OT::Pie::IsValidColorPalette
"Test the validity of a color palette.

Parameters
----------
palette : sequence of str
    Names of the colors.

Returns
-------
validity : bool
    *True* if *palette* is valid or *False* otherwise.

Examples
--------
>>> import openturns as ot
>>> pie = ot.Pie([0.5,0.2,0.3])
>>> print(pie.IsValidColorPalette(['#ff0000','#ccff00','#00ff66']))
True
>>> print(pie.IsValidColorPalette(['green','red','darkorange']))
True
>>> print(pie.IsValidColorPalette(['green','red','darkpink']))
False"