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
1 changed files with 7 additions and 1 deletions

View File

@ -113,13 +113,19 @@ with pd.HDFStore(
color=color, color=color,
ls=ls, 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.grid()
axi.set( axi.set(
xlabel='t (s)', xlabel='t (s)',
ylabel=config.get('figure', 'ylabel', fallback=''), ylabel=config.get('figure', 'ylabel', fallback=''),
xlim=(0,timesteps.max()), xlim=(0,timesteps.max()),
ylim=(0,figmax), 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')) fig.savefig(config.get('figure', 'save'))
plt.show() plt.show()