Visualize empirical CDFΒΆ

In this example we are going to draw the empirical CDF of an unidimensional sample.

In [4]:
from __future__ import print_function
import openturns as ot
In [5]:
# Create data to visualize
size = 100
normal = ot.Normal(1)
sample = normal.getSample(size)
In [6]:
# Draw empirial CDF
xmin = sample.getMin()[0] - 1.0
xmax = sample.getMax()[0] + 1.0
ot.VisualTest.DrawEmpiricalCDF(sample, xmin, xmax)
Out[6]:
../../_images/examples_data_analysis_visualize_empirical_cdf_4_0.svg