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