Update displaying projection & fix typo
This commit is contained in:
parent
d49ca3e39f
commit
d1f5706061
2 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
Loading…
Reference in a new issue