/usr/include/openturns/swig/Polygon_doc.i is in libopenturns-dev 1.9-5.
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 | %feature("docstring") OT::Polygon
"Polygon.
Available constructors:
Polygon(*legend=' '*)
Polygon(*data, legend=' '*)
Polygon(*dataX, dataY, legend=' '*)
Polygon(*data, color, edgeColor, legend=' '*)
Parameters
----------
data : 2-d sequence of float of dimension 2
Vertices of the polygon.
dataX, dataY : two 2-d sequences of float of dimension 1, or two sequences of float
List of the first and second coordinates of the vertices.
legend : str
Legend of the polygon.
color, edgeColor : two str
Fill color and the edge color. If not specified, by default it is 'blue'.
Examples
--------
>>> import openturns as ot
>>> # Generate the data for the polygons to be drawn
>>> data =[[9.0*i/51, (9.0*i/51)*(9.0*i/51)] for i in range(50)]
>>> # Create an empty graph
>>> myGraph = ot.Graph('Polygon example', 'x1', 'x2', True, '', 1.0)
>>> myPolygon = ot.Polygon(data)
>>> myPolygon.setColor('red')
>>> myGraph.add(myPolygon)"
// ---------------------------------------------------------------------
%feature("docstring") OT::Polygon::setEdgeColor
"Set the color of the Polygon edge.
Parameters
----------
edgeColor : str
Color of the edge of the :class:`~openturns.Polygon`."
|