diff --git a/src/backscattering_analyzer/data.py b/src/backscattering_analyzer/data.py index 726519d..33d43f7 100644 --- a/src/backscattering_analyzer/data.py +++ b/src/backscattering_analyzer/data.py @@ -60,13 +60,13 @@ class Data: logger.critical( _("no data on {bench} in {date}").format( bench=bench, - data=date, + date=date, ) ) raise Exception( _("no data on {bench} in {date}").format( bench=bench, - data=date, + date=date, ) ) diff --git a/src/backscattering_analyzer/display.py b/src/backscattering_analyzer/display.py index 4c09d3a..d574dd7 100644 --- a/src/backscattering_analyzer/display.py +++ b/src/backscattering_analyzer/display.py @@ -19,6 +19,9 @@ def show_projection( title, xlabel, ylabel, + xlim, + ylim, + grid, ) reference = experiment.data.reference.sensibility.psd().sqrt() @@ -57,8 +60,11 @@ def show_projection( ) # type: ignore[ReportUnusedCallResult] legend() # 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] + xlim(5, 100) # type: ignore[ReportUnusedCallResult] + ylim(10e-28, 10e-18) # type: ignore[ReportUnusedCallResult] + grid(True, "both") # type: ignore[ReportUnusedCallResult] show() close() logger.debug(_("experiment result showed"))