p2(visualise): add plot comparison
This commit is contained in:
parent
eff30ef628
commit
cad05f6864
BIN
p2/res/impulse_func_estimate_comparison.png
Normal file
BIN
p2/res/impulse_func_estimate_comparison.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
@ -102,3 +102,16 @@ fig = lp.get_figure()
|
|||||||
fig.subplots_adjust(top=.97)
|
fig.subplots_adjust(top=.97)
|
||||||
fig.savefig('res/mutual_correlation_yu.png')
|
fig.savefig('res/mutual_correlation_yu.png')
|
||||||
plt.clf()
|
plt.clf()
|
||||||
|
|
||||||
|
# plot comparison
|
||||||
|
imf=pd.read_csv('data/impulse_func.csv')
|
||||||
|
imfM=pd.read_csv('data/ircra.csv')
|
||||||
|
|
||||||
|
plt.plot(range(0, len(imf)), imf, label='gCustom')
|
||||||
|
plt.plot(range(0, len(imfM)), imfM, label='gSIT')
|
||||||
|
plt.legend(loc="upper right")
|
||||||
|
plt.title('Impulse Function Estimate Comparison')
|
||||||
|
plt.xlabel('time (s)')
|
||||||
|
plt.ylabel('amplitude')
|
||||||
|
plt.savefig('res/impulse_func_estimate_comparison.png')
|
||||||
|
plt.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user