Commit ffb23f85 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

enable grid on histograms

parent 5636f171
Pipeline #21479 passed with stage
in 22 minutes and 14 seconds
...@@ -743,7 +743,7 @@ class Hist(PlotBase): ...@@ -743,7 +743,7 @@ class Hist(PlotBase):
self._get_neg_pos_thres(idx, input_scores, input_names) self._get_neg_pos_thres(idx, input_scores, input_names)
# keep id of the current system # keep id of the current system
sys = idx sys = idx
# if the id of the current system does not match the id of the plot, # if the id of the current system does not match the id of the plot,
# change it # change it
if not self._hide_dev and self._eval: if not self._hide_dev and self._eval:
row = int(idx / self._ncols) * 2 row = int(idx / self._ncols) * 2
...@@ -795,6 +795,9 @@ class Hist(PlotBase): ...@@ -795,6 +795,9 @@ class Hist(PlotBase):
# 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