ex-1: remote histogram plot program
This commit is contained in:
parent
ebefc6db5a
commit
d8800f6c3b
10
ex-1/plot.py
10
ex-1/plot.py
@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
from pylab import *
|
|
||||||
import sys
|
|
||||||
|
|
||||||
a, b, f = loadtxt(sys.stdin, unpack=True)
|
|
||||||
title('Landau distribution sampling', loc='right')
|
|
||||||
hist(a, np.insert(b, 0, a[0]), weights=f/sum(f))
|
|
||||||
annotate(f'N={sum(f)}\nbins={len(f)}', (50, 0.2))
|
|
||||||
show()
|
|
Loading…
Reference in New Issue
Block a user