This file is indexed.

/usr/include/openturns/swig/Graph_doc.i is in libopenturns-dev 1.5-7build2.

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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
%feature("docstring") OT::Graph
"Class Graph containing drawable elements and a graphical context.

Available constructors:
    Graph(*title=''*)

    Graph(*title, xTitle, yTitle, showAxes, legendPosition='', legendFontSize=1.0, logScale=ot.GraphImplementation.NONE*)

Parameters
----------
title : string
    Title of the graph.
xTitle : string
    Legend of the X axe.
yTitle : string
    Legend of the Y axe.
showAxes : bool
    *True* to draw the axes. *False* to hide them.
legendPosition : string
    Indication of the legend's position. If *legendPosition* is not specified,
    the Graph has no legend. The valid strings are given by the
    :meth:`GetValidLegendPositions` method.
legendFontSize : float
    Font size of the legend.
logScale : int
    logScale indicates whether the logarithmic scale is used either for one or both axes:

    - ot.GraphImplementation.NONE or 0: no log scale is used,

    - ot.GraphImplementation.LOGX or 1: log scale is used only for horizontal data,

    - ot.GraphImplementation.LOGY or 2: log scale is used only for vertical data,

    - ot.GraphImplementation.LOGXY or 3: log scale is used for both data.
"

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

%feature("docstring") OT::Graph::getDrawables
"Accessor to the Drawables included in the Graph.

Returns
-------
drawables : list of :class:`~openturns.Drawable`
    Drawables included in the Graph."

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

%feature("docstring") OT::Graph::setDrawables
"Accessor to the Drawables included in the Graph.

Parameters
----------
drawables : list of :class:`~openturns.Drawable`
    Drawables included in the Graph."

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

%feature("docstring") OT::Graph::getDrawable
"Accessor to a Drawable included in the Graph.

Parameters
----------
index : positive int
    Position of the Drawable.

Returns
-------
drawable : :class:`~openturns.Drawable`
    Drawable included in the Graph at the index."

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

%feature("docstring") OT::Graph::setDrawable
"Accessor to a Drawable included in the Graph.

Parameters
----------
index : int
    Position of the Drawable.
drawable : :class:`~openturns.Drawable`
    Drawable included in the Graph."

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

%feature("docstring") OT::Graph::getColors
"Accessor to the colors of the Drawables included in the Graph.

Returns
-------
listColors : list of strings
    List of all the colors used for the Drawables contained inside the graph."

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

%feature("docstring") OT::Graph::setColors
"Update the colors of the Drawables inside the Graph.

Parameters
----------
listColors : list of strings
    List of the colors used for each Drawable of the Graph.
    If the *listColors*'s size is lower than the number of Drawables, the
    first colors of *listColors* are re-used. If it is greated than
    the number of Drawables, the last colors of the list are ignored.

    The *listColors* argument can be the result of the static method
    :meth:`~openturns.Drawable.BuildDefaultPalette` of the Drawable object."

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

%feature("docstring") OT::Graph::setDefaultColors
"Assign colors to a default palette to all the drawables of the Graph.

Notes
-----
This method ensures that drawables of the Graph have different colors."

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

%feature("docstring") OT::Graph::getLegends
"Accessor to the legends of the Drawables inside the Graph.

Returns
-------
legends : list of strings
    Legends used for the drawables contained inside the Graph."

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

%feature("docstring") OT::Graph::setLegends
"Accessor to the legends of the Drawables inside the Graph.

Parameters
----------
legends : list of strings
    Legends used for the drawables contained inside the Graph."

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

%feature("docstring") OT::Graph::getLegendFontSize
"Accessor to the legends' font size of the Drawables inside the Graph.

Returns
-------
fontSize : float
    Legends' font size used for the drawables contained inside the Graph.

See Also
--------
setLegendFontSize"

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

%feature("docstring") OT::Graph::setLegendFontSize
"Accessor to the legend's font size of the Drawables inside the Graph.

Parameters
----------
fontSize : float
    Legend's font size used for the drawables contained inside the Graph.

Examples
--------
>>> import openturns as ot
>>> fontSize = 1.0
>>> # Create an empty graph
>>> myGraph = ot.Graph('Some curves', 'x1', 'x2', True, 'topright', fontSize, 0)
>>> myGraph.setLegendFontSize(1.5)
>>> print(myGraph.getLegendFontSize())
1.5"

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

%feature("docstring") OT::Graph::getLegendPosition
"Accessor to the legend's position of the Drawables inside the Graph.

Returns
-------
position : string
    Legend's position used for the drawables contained inside the Graph.

See Also
--------
setLegendPosition, GetValidLegendPositions"

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

%feature("docstring") OT::Graph::setLegendPosition
"Accessor to the legend's position of the Drawables inside the Graph.

Parameters
----------
position : string
    Legend's position used for the drawables contained inside the Graph.
    The valid positions are given by the method :meth:`GetValidLegendPositions`.

Examples
--------
>>> import openturns as ot
>>> position = 'topright'
>>> # Create an empty graph
>>> myGraph = ot.Graph('Some curves', 'x1', 'x2', True, position, 1.0, 0)
>>> myGraph.setLegendPosition('bottomleft')
>>> print(myGraph.getLegendPosition())
bottomleft"

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

%feature("docstring") OT::Graph::GetValidLegendPositions
"Accessor to the list of valid legend positions.

Returns
-------
listPositions : list of strings
    All the valid legend positions.

Examples
--------
>>> import openturns as ot
>>> print(ot.Graph().GetValidLegendPositions())
[,bottomright,bottom,bottomleft,left,topleft,top,topright,right,center]#10"

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

%feature("docstring") OT::Graph::isValidLegendPosition
"Test if the proposed legend position is valid or not.

Parameters
----------
position : string
    Proposed legend position of the Drawables inside the Graph.

Returns
-------
validity : bool
    *True* if the proposed legend position is valid, *False* if it is not.

See Also
--------
setLegendPosition, GetValidLegendPositions

Examples
--------
>>> import openturns as ot
>>> print(ot.Graph().isValidLegendPosition('lefttop'))
False
>>> print(ot.Graph().isValidLegendPosition('topleft'))
True"

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

%feature("docstring") OT::Graph::getAxes
"Accessor to the indication of axes' presence on the Graph.

Returns
-------
axes : bool
    *True* if the axes are drawn, *False* if they are hidden."

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

%feature("docstring") OT::Graph::setAxes
"Accessor to the indication of axes' presence on the Graph.

Parameters
----------
axes : bool
    *True* to draw the axes, *False* to hide the axes."

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

%feature("docstring") OT::Graph::getLogScale
"Accessor to the indication of axes' scale of the Graph.

Returns
-------
scale : int
    Indicates the type of the axes's scale:

    - 0: no log scale is used,

    - 1: log scale is used only for horizontal data,

    - 2: log scale is used only for vertical data,

    - 3: log scale is used for both data."

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

%feature("docstring") OT::Graph::setLogScale
"Accessor to the indication of axes' scale of the Graph.

Parameters
----------
scale : int
    Indicates the type of the axes's scale:

    - ot.GraphImplementation.NONE or 0: no log scale is used,

    - ot.GraphImplementation.LOGX or 1: log scale is used only for horizontal data,

    - ot.GraphImplementation.LOGY or 2: log scale is used only for vertical data,

    - ot.GraphImplementation.LOGXY or 3: log scale is used for both data."

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

%feature("docstring") OT::Graph::getXTitle
"Accessor to the title of the X axe.

Returns
-------
Xtitle : string
    Title of the X axe."

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

%feature("docstring") OT::Graph::setXTitle
"Accessor to the title of the X axe.

Parameters
----------
Xtitle : string
    Title of the X axe."

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

%feature("docstring") OT::Graph::getYTitle
"Accessor to the title of the Y axe.

Returns
-------
Ytitle : string
    Title of the Y axe."

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

%feature("docstring") OT::Graph::setYTitle
"Accessor to the title of the Y axe.

Parameters
----------
Ytitle : string
    Title of the Y axe."

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

%feature("docstring") OT::Graph::getTitle
"Accessor to the title of the Graph.

Returns
-------
title : string
    Title of the Graph."

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

%feature("docstring") OT::Graph::setTitle
"Accessor to the title of the Graph.

Parameters
----------
title : string
    Title of the Graph."

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

%feature("docstring") OT::Graph::getName
"Accessor to the name of the Graph.

Returns
-------
name : string
    Name of the Graph."

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

%feature("docstring") OT::Graph::setName
"Accessor to the name of the Graph.

Parameters
----------
name : string
    Name of the Graph."

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

%feature("docstring") OT::Graph::getGrid
"Accessor to the indication of grid's presence on the Graph.

Returns
-------
showGrid : bool
    *True* to show the grid of the Graph, *False* to hide it.
    By default there is a gray grid."

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

%feature("docstring") OT::Graph::setGrid
"Hide or shows grid of the Graph.

Parameters
----------
showGrid : bool
    *True* to show the grid of the Graph, *False* to hide it."

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

%feature("docstring") OT::Graph::getGridColor
"Accessor to the indication of grid's color on the Graph.

Returns
-------
gridColor : string
    Color of the grid. By default the grid is gray."

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

%feature("docstring") OT::Graph::setGridColor
"Accessor to the indication of grid's color on the Graph.

Parameters
----------
gridColor : string
    Color of the grid. By default the grid is gray."

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

%feature("docstring") OT::Graph::getFileName
"Accessor to the name of the file containing the Graph.

Returns
-------
fileName : string
    Name of the file containing the Graph."

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

%feature("docstring") OT::Graph::getPath
"Accessor to the file path excluding the suffix.

Returns
-------
path : string
    Path of the file containing the Graph."

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

%feature("docstring") OT::Graph::getBitmap
"**(ditch me?)**"

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

%feature("docstring") OT::Graph::getPostscript
"**(ditch me?)**"

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

%feature("docstring") OT::Graph::getVectorial
"**(ditch me?)**"

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

%feature("docstring") OT::Graph::getPDF
"**(ditch me?)**"

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

%feature("docstring") OT::Graph::getBoundingBox
"Accessor to the bounding box of the whole plot.

Returns
-------
boundingBox : float sequence of dimension 4
    Bounding box of the drawable element, which is a rectangle determined
    by its range along X and its range along Y.
    The *boundingBox* is :math:`(x_{min}, x_{max}, y_{min}, y_{max})`."

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

%feature("docstring") OT::Graph::setBoundingBox
"Accessor to the bounding box of the whole plot.

Parameters
----------
boundingBox : float sequence of dimension 4
    Bounding box of the drawable element, which is a rectangle determined
    by its range along X and its range along Y.
    The *boundingBox* is :math:`(x_{min}, x_{max}, y_{min}, y_{max})`."

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

%feature("docstring") OT::Graph::getRCommand
"**(ditch me?)**"

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

%feature("docstring") OT::Graph::getAutomaticBoundingBox
"Accessor to the indication of automatic bounding box.

Returns
-------
autoBoundingBox : bool
    Indicates if the bounding box is automatically created or not.
    The bounding box of the drawable element is a rectangle determined
    by its range along X and its range along Y.
    The *boundingBox* is :math:`(x_{min}, x_{max}, y_{min}, y_{max})`."

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

%feature("docstring") OT::Graph::setAutomaticBoundingBox
"Accessor to the indication of automatic bounding box.

Parameters
----------
autoBoundingBox : bool
    Indicates if the bounding box is automatically created or not.
    The bounding box of the drawable element is a rectangle determined
    by its range along X and its range along Y.
    The *boundingBox* is :math:`(x_{min}, x_{max}, y_{min}, y_{max})`."

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

%feature("docstring") OT::Graph::draw
"Generate graphic files.

Available usages:
    draw(*file, width=640, height=480*)

Parameters
----------
file : string
     Name of the created file. The format is guessed from the extension.
     Supports png, fig, pdf and eps file formats. When the path is not
     specified in the file name, the files are created in the current directory.
width : float
    Number of pixels fixing the width of the Graph.
height : float
    Number of pixels fixing the height of the Graph."

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

%feature("docstring") OT::Graph::add
"Add drawable instances to the collection of drawables contained in Graph.

Available usages:
    add(*drawables*)

    add(*aGraph*)

Parameters
----------
drawables : :class:`~openturns.Drawable` or list of :class:`~openturns.Drawable`
    Drawable to add in the Graph.
aGraph : :class:`~openturns.Graph`
    Graph to add in the Graph.

Notes
-----
It adds the new drawables or graph inside the first one, with their legend.
It keeps the graphical context of the first graph. Each drawable keeps
its graphical context.

.. warning::
    Different drawables might be colored the same..."

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

%feature("docstring") OT::Graph::clean
"Clean temporary files.

Notes
-----
Cleans all the temporary data created by the drawables during their drawing."

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

%feature("docstring") OT::Graph::erase
"Erase a drawable instance from the collection of drawables contained in Graph.

Parameters
----------
index : int
    Index of the drawable instance to erase from the collection of drawables
    contained in Graph."