Skip to content
Snippets Groups Projects
Commit c7f75528 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Add title and label options

parent e0a0db5e
No related branches found
No related tags found
2 merge requests!42Set of click commands for pad,!41Set of click commands for pad
Pipeline #
......@@ -10,6 +10,7 @@ from . import figure
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='det.pdf')
@common_options.titles_option()
@common_options.title_option()
@common_options.const_layout_option()
@common_options.style_option()
@common_options.figsize_option()
......
......@@ -10,7 +10,10 @@ from . import figure
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='epc.pdf')
@common_options.titles_option()
@common_options.title_option()
@common_options.const_layout_option()
@common_options.x_label_option()
@common_options.y_label_option()
@common_options.figsize_option()
@common_options.style_option()
@common_options.bool_option(
......
......@@ -213,9 +213,10 @@ class Epc(PadPlot):
super(Epc, self).__init__(ctx, scores, evaluation, func_load)
self._iapmr = True if 'iapmr' not in self._ctx.meta else \
self._ctx.meta['iapmr']
self._title = 'EPC and IAPMR' if self._iapmr else 'EPC'
self._x_label = r"Weight $\beta$"
self._y_label = "WER (%)"
self._title = self._title or ('EPC and IAPMR' if self._iapmr else
'EPC')
self._x_label = self._x_label or r"Weight $\beta$"
self._y_label = self._y_label or "WER (%)"
self._eval = True #always eval data with EPC
self._split = False
self._nb_figs = 1
......
......@@ -10,6 +10,7 @@ from . import figure
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='fmr_iapmr.pdf')
@common_options.titles_option()
@common_options.title_option()
@common_options.const_layout_option()
@common_options.style_option()
@common_options.figsize_option()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment