Histogramme simple

<sxh python; title : simple-histogram-random_numbers.py> #! /usr/bin/env python # -*- coding: utf-8 -*- “”“ Matplotib : histogramme simple de nombres aléatoires ”“” from pylab import randn, hist, show #importation simplifiée

x = randn(10000) hist(x, 25) show() </sxh>

Références