Post-process: minmax

This commit is contained in:
Edgar P. Burkhart 2022-02-01 02:01:38 +01:00
parent ee760958b8
commit d07771aa8e
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -113,13 +113,19 @@ with pd.HDFStore(
color=color,
ls=ls,
)
axi.legend()
pp((sensor_data.max().max(), sensor_data.max().min()))
pp((sensor_data.max().max()-sensor_data.max().min())\
/sensor_data.max().max())
pp(sensor_data.max())
axi.grid()
axi.set(
xlabel='t (s)',
ylabel=config.get('figure', 'ylabel', fallback=''),
xlim=(0,timesteps.max()),
ylim=(0,figmax),
title=f'x={mesh.x.iat[sensor_id]}m',
)
axi.legend(loc='upper right')
fig.tight_layout()
fig.savefig(config.get('figure', 'save'))
plt.show()