[ create a new paste ] login | about

Link: http://codepad.org/7MIqmwZm    [ raw code | output | fork ]

Python, pasted on Oct 18:
1
2
3
4
5
6
7
8
9
10
11
import numpy as np
from matplotlib import pyplot as plt

ys = 200 + np.random.randn(100)
x = [x for x in range(len(ys))]

plt.plot(x, ys, '-')
plt.fill_between(x, ys, 195, where=(ys > 195), facecolor='g', alpha=0.6)

plt.title("Sample Visualization")
plt.show()


Output:
1
2
3
4
Traceback (most recent call last):
  Line 1, in <module>
    import numpy as np
ImportError: No module named numpy


Create a new paste based on this one


Comments: