1%feature("docstring") OT::Staircase 2"Staircase. 3 4Available constructors: 5 Staircase(*data, legend=' '*) 6 7 Staircase(*data, color, lineStyle, lineWidth, pattern, legend=' '*) 8 9 Staircase(*data, color, lineStyle, pattern, legend=' '*) 10 11Parameters 12---------- 13data : 2-d sequence of float 14 Points from which the Staircase is built, must be of dimension 2: the 15 discontinuous points and their corresponding height. 16legend : str 17 Legend of the Staircase. 18color : str 19 Color of the curve. If not specified, by default it is 'blue'. 20lineStyle : str 21 Style of the curve. If not specified, by default it is 'solid'. 22lineWidth : float 23 Width of the curve. If not specified, by default it is 1. 24pattern : str 25 Pattern which is 'S' or 's'. By default the pattern is equal to 's'. Going 26 from :math:`(x_1, y_1)` to :math:`(x_2, y_2)` with :math:`x_1<x_2`, 27 pattern='s' moves first horizontal then vertical, whereas pattern='S' moves 28 the other way around. 29 30Examples 31-------- 32>>> import openturns as ot 33>>> distribution = ot.Normal([0.5], [2.], ot.CorrelationMatrix(1)) 34>>> sample = distribution.getSample(200) 35>>> # Construct empirical CDF for the sample 36>>> data = ot.Sample(20, 2) 37>>> cursor = ot.Point(2) 38>>> for i in range(20): 39... cursor[0] = 13.0 * i / 20.0 - 6.5 40... count = 0 41... for j in range(200): 42... if(sample[j, 0] < cursor[0]): 43... count += 1 44... cursor[1] = count / 200.0 45... data[i] = cursor 46>>> # Create an empty graph 47>>> myGraph = ot.Graph('A staircase', 'x1', 'x2', True, 'topleft') 48>>> # Create the staircase 49>>> myStaircase = ot.Staircase(data, 'blue', 'solid', 's', 'Normal CDF') 50>>> myGraph.add(myStaircase)" 51