p2(visualise): add plot comparison

This commit is contained in:
leo 2023-02-27 02:54:30 +01:00
parent eff30ef628
commit cad05f6864
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
2 changed files with 13 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

@ -102,3 +102,16 @@ fig = lp.get_figure()
fig.subplots_adjust(top=.97)
fig.savefig('res/mutual_correlation_yu.png')
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()