(vector, color, bins, ax=None, linewidth=1.0)
| 42 | |
| 43 | |
| 44 | def Histogram(vector, color, bins, ax=None, linewidth=1.0): |
| 45 | dvector = np.diff(vector) |
| 46 | dvector = dvector[np.isfinite(dvector)] |
| 47 | if ax is None: |
| 48 | fig = plt.figure() |
| 49 | ax = fig.add_subplot(111) |
| 50 | ax.hist(dvector, color=color, histtype="step", bins=bins, linewidth=linewidth) |
| 51 | |
| 52 | |
| 53 | def PlottingResults( |