2020-03-06 02:24:32 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-06-03 14:28:45 +02:00
|
|
|
from matplotlib import pyplot as plt
|
|
|
|
import numpy as np
|
2020-03-06 02:24:32 +01:00
|
|
|
import sys
|
|
|
|
|
2020-06-03 14:28:45 +02:00
|
|
|
|
|
|
|
plt.figure()
|
|
|
|
# plt.figure(figsize=(5, 3))
|
|
|
|
# plt.rcParams['font.size'] = 8
|
|
|
|
|
2020-06-05 23:46:32 +02:00
|
|
|
# draw the function
|
2020-06-03 14:28:45 +02:00
|
|
|
x, y = np.loadtxt(sys.stdin, unpack=True)
|
|
|
|
plt.title('Landau distribution', loc='right')
|
|
|
|
plt.plot(x, y, color='#92182b')
|
|
|
|
|
|
|
|
plt.tight_layout()
|
|
|
|
plt.show()
|
2020-06-05 23:46:32 +02:00
|
|
|
# plt.savefig('notes/images/1-landau.pdf')
|