MCPcopy Create free account
hub / github.com/ayaabdelsalam91/TS-Interpretability-Benchmark / plotExampleProcesses

Function plotExampleProcesses

Scripts/Plotting.py:38–54  ·  view source on GitHub ↗
(sample,saveLocation,show=False,color='r')

Source from the content-addressed store, hash-verified

36
37
38def 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()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected