()
| 25 | |
| 26 | |
| 27 | def PyplotSimple(): |
| 28 | import numpy as np |
| 29 | import matplotlib.pyplot as plt |
| 30 | |
| 31 | # evenly sampled time at 200ms intervals |
| 32 | t = np.arange(0., 5., 0.2) |
| 33 | |
| 34 | # red dashes, blue squares and green triangles |
| 35 | plt.plot(t, t, 'r--', t, t ** 2, 'bs', t, t ** 3, 'g^') |
| 36 | |
| 37 | fig = plt.gcf() # get the figure to show |
| 38 | return fig |
| 39 | |
| 40 | |
| 41 | def PyplotHistogram(): |