File: histogram.py

package info (click to toggle)
wxmplot 0.9.58-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,052 kB
  • sloc: python: 10,085; makefile: 88; sh: 2
file content (9 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/python
import numpy as np
import wxmplot.interactive as wi

x = np.concatenate((0.25 + np.random.normal(size=2000, scale=0.5),
                   np.random.random(size=600)*1.25,
                   -0.2+np.random.random(size=300)*0.7))

wi.hist(x, bins=51, rwidth=0.75, title='A Histogram')