(sample,saveLocation,show=False,color='r')
| 36 | |
| 37 | |
| 38 | def plotExampleProcesses(sample,saveLocation,show=False,color='r'): |
| 39 | |
| 40 | times = [i for i in range (sample.shape[0])] |
| 41 | for j in range(sample.shape[1]): |
| 42 | plt.plot(times,sample[:,j],color =color) |
| 43 | |
| 44 | # plt.gca().set_axis_off() |
| 45 | plt.subplots_adjust(top = 1, bottom = 0, right = 1, left = 0, hspace = 0, wspace = 0) |
| 46 | plt.margins(0,0) |
| 47 | # plt.gca().xaxis.set_major_locator(plt.NullLocator()) |
| 48 | # plt.gca().yaxis.set_major_locator(plt.NullLocator()) |
| 49 | |
| 50 | plt.savefig(saveLocation+'.png' , bbox_inches = 'tight',pad_inches = 0) |
| 51 | |
| 52 | if(show): |
| 53 | plt.show() |
| 54 | plt.close() |
no outgoing calls
no test coverage detected