Visualize an histogram from dataΒΆ

In this example we are going to a plot an histogram from an unidimensional sample.

In [4]:
from __future__ import print_function
import openturns as ot
In [5]:
# Create data to visualize
size = 500
normal = ot.Normal(1)
sample = normal.getSample(size)
In [6]:
# Draw histogram
ot.VisualTest_DrawHistogram(sample)
Out[6]:
../../_images/examples_statistical_estimation_visualize_histogram_4_0.svg