/usr/include/openturns/swig/Curve_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 | %feature("docstring") OT::Curve
"Curve.
Available constructors:
Curve(*data, legend=' '*)
Curve(*dataX, dataY, legend=' '*)
Curve(*data, color, lineStyle, lineWidth, legend=' '*)
Parameters
----------
data : 2-d sequence of float
Points from which the curve is built.
dataX, dataY : two 2-d sequences of float of dimension 1, or two sequences of float
Points from which the curve is built.
legend : str
Legend of the Curve.
color : str
Color of the curve. If not specified, by default it is 'blue'.
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 pi, sin
>>> # Generate the data for the curve to be drawn
>>> data = [[-3 * pi + 6 * pi * i / 100, sin(-3 * pi + 6 * pi * i / 100)] for i in range(100)]
>>> # Create an empty graph
>>> myGraph = ot.Graph('A curve', 'x', 'sin(x)', True, '')
>>> # Create the curve
>>> myCurve = ot.Curve(data, 'blue', 'solid', 2, '')
>>> myGraph.add(myCurve)"
|