Commit fac19d07 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Enable grid on all histograms

parent ddf5d699
Pipeline #21543 passed with stage
in 29 minutes and 20 seconds
...@@ -307,7 +307,7 @@ class Metrics(MeasureBase): ...@@ -307,7 +307,7 @@ class Metrics(MeasureBase):
fta_eval = float(all_metrics[1][0].replace('%', '')) fta_eval = float(all_metrics[1][0].replace('%', ''))
if fta_eval > 0.0: if fta_eval > 0.0:
LOGGER.warn("NaNs scores (%s) were found in %s and removed.", LOGGER.warn("NaNs scores (%s) were found in %s and removed.",
all_metrics[1][0], eval_file) all_metrics[1][0], eval_file)
# computes statistics for the eval set based on the threshold a # computes statistics for the eval set based on the threshold a
# priori # priori
headers.append('Evaluation') headers.append('Evaluation')
...@@ -351,9 +351,9 @@ class MultiMetrics(Metrics): ...@@ -351,9 +351,9 @@ class MultiMetrics(Metrics):
def _strings(self, metrics): def _strings(self, metrics):
ftam, fmrm, fnmrm, hterm, farm, frrm, _, _, _, _, _, _, _ = \ ftam, fmrm, fnmrm, hterm, farm, frrm, _, _, _, _, _, _, _ = \
metrics.mean(axis=0) metrics.mean(axis=0)
ftas, fmrs, fnmrs, hters, fars, frrs, _, _, _, _, _, _, _ = \ ftas, fmrs, fnmrs, hters, fars, frrs, _, _, _, _, _, _, _ = \
metrics.std(axis=0) metrics.std(axis=0)
fta_str = "%.1f%% (%.1f%%)" % (100 * ftam, 100 * ftas) fta_str = "%.1f%% (%.1f%%)" % (100 * ftam, 100 * ftas)
fmr_str = "%.1f%% (%.1f%%)" % (100 * fmrm, 100 * fmrs) fmr_str = "%.1f%% (%.1f%%)" % (100 * fmrm, 100 * fmrs)
fnmr_str = "%.1f%% (%.1f%%)" % (100 * fnmrm, 100 * fnmrs) fnmr_str = "%.1f%% (%.1f%%)" % (100 * fnmrm, 100 * fnmrs)
...@@ -790,14 +790,14 @@ class Hist(PlotBase): ...@@ -790,14 +790,14 @@ class Hist(PlotBase):
if draw_line: if draw_line:
self._lines(threshold, label, neg, pos, idx) self._lines(threshold, label, neg, pos, idx)
# enable the grid and set it below other elements
axis.set_axisbelow(True)
axis.grid(True, color=self._grid_color)
# if it was the last subplot of the page or the last subplot # if it was the last subplot of the page or the last subplot
# to display, save figure # to display, save figure
if self._step_print == sub_plot_idx or (is_lower and sys == if self._step_print == sub_plot_idx or (is_lower and sys ==
self.n_systems - 1): self.n_systems - 1):
# enable the grid and set it below other elements
axis.set_axisbelow(True)
axis.grid(True, color=self._grid_color)
# print legend on the page # print legend on the page
self.plot_legends() self.plot_legends()
mpl.tight_layout() mpl.tight_layout()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment