Update displaying projection & fix typo

This commit is contained in:
linarphy 2024-08-30 14:56:26 +02:00
parent d49ca3e39f
commit d1f5706061
No known key found for this signature in database
GPG key ID: E61920135EFF2295
2 changed files with 9 additions and 3 deletions

View file

@ -60,13 +60,13 @@ class Data:
logger.critical( logger.critical(
_("no data on {bench} in {date}").format( _("no data on {bench} in {date}").format(
bench=bench, bench=bench,
data=date, date=date,
) )
) )
raise Exception( raise Exception(
_("no data on {bench} in {date}").format( _("no data on {bench} in {date}").format(
bench=bench, bench=bench,
data=date, date=date,
) )
) )

View file

@ -19,6 +19,9 @@ def show_projection(
title, title,
xlabel, xlabel,
ylabel, ylabel,
xlim,
ylim,
grid,
) )
reference = experiment.data.reference.sensibility.psd().sqrt() reference = experiment.data.reference.sensibility.psd().sqrt()
@ -57,8 +60,11 @@ def show_projection(
) # type: ignore[ReportUnusedCallResult] ) # type: ignore[ReportUnusedCallResult]
legend() # type: ignore[ReportUnusedCallResult] legend() # type: ignore[ReportUnusedCallResult]
title(experiment.bench) #  type: ignore[ReportUnusedCallResult] title(experiment.bench) #  type: ignore[ReportUnusedCallResult]
xlabel(_("frequency (Hz)")) # type: ignore[ReportUnusedCallResult] xlabel(_("frequencies (Hz)")) # type: ignore[ReportUnusedCallResult]
ylabel(_("sensibility ($\\frac{1} {\\sqrt {Hz}}$)")) #  type: ignore[ReportUnusedCallResult] ylabel(_("sensibility ($\\frac{1} {\\sqrt {Hz}}$)")) #  type: ignore[ReportUnusedCallResult]
xlim(5, 100) # type: ignore[ReportUnusedCallResult]
ylim(10e-28, 10e-18) # type: ignore[ReportUnusedCallResult]
grid(True, "both") # type: ignore[ReportUnusedCallResult]
show() show()
close() close()
logger.debug(_("experiment result showed")) logger.debug(_("experiment result showed"))