Visualize an histogram from dataΒΆ

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

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