Commit c30bdb46 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

Modifications according to option name change titles->legends

parent 78a95405
Pipeline #19611 failed with stage
in 37 minutes and 41 seconds
......@@ -9,7 +9,7 @@ from . import figure
@click.command()
@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.legends_option()
@common_options.title_option()
@common_options.const_layout_option()
@common_options.style_option()
......
......@@ -9,7 +9,7 @@ from . import figure
@click.command()
@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.legends_option()
@common_options.title_option()
@common_options.const_layout_option()
@common_options.x_label_option()
......@@ -50,7 +50,7 @@ def epc(ctx, scores, **kwargs):
@click.command()
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='epsc.pdf')
@common_options.titles_option()
@common_options.legends_option()
@common_options.const_layout_option()
@common_options.x_label_option()
@common_options.y_label_option()
......
......@@ -66,7 +66,7 @@ class Metrics(measure_figure.Metrics):
eval_neg, eval_pos = neg_list[1], pos_list[1]
eval_file = input_names[1]
title = self._titles[idx] if self._titles is not None else None
title = self._legends[idx] if self._legends is not None else None
headers = ['' or title, 'Development %s' % dev_file]
if self._eval:
headers.append('Eval. % s' % eval_file)
......@@ -272,7 +272,7 @@ class Epc(PadPlot):
ylabels = prob_ax.get_yticks()
prob_ax.yaxis.set_ticklabels(["%.0f" % val for val in ylabels])
prob_ax.set_axisbelow(True)
title = self._titles[idx] if self._titles is not None else self._title
title = self._legends[idx] if self._legends is not None else self._title
mpl.title(title)
#legends for all axes
self._plot_legends()
......@@ -310,7 +310,7 @@ class Epsc(PadPlot):
spoof_dev_pos = input_scores[2][1]
spoof_eval_neg = input_scores[3][0]
spoof_eval_pos = input_scores[3][1]
title = self._titles[idx] if self._titles is not None else None
title = self._legends[idx] if self._legends is not None else None
mpl.gcf().clear()
points = 10
......@@ -419,7 +419,7 @@ class Epsc3D(Epsc):
spoof_eval_neg = input_scores[3][0]
spoof_eval_pos = input_scores[3][1]
title = self._titles[idx] if self._titles is not None else None
title = self._legends[idx] if self._legends is not None else None
mpl.rcParams.pop('key', None)
......@@ -666,7 +666,7 @@ class FmrIapmr(PadPlot):
# re-calculate fmr since threshold might give a different result
# for fmr.
fmr_list[i] = farfrr(licit_eval_neg, licit_eval_pos, thr)[0]
label = self._titles[idx] if self._titles is not None else \
label = self._legends[idx] if self._legends is not None else \
'(%s/%s)' % (input_names[1], input_names[3])
if self._semilogx:
mpl.semilogx(fmr_list, iapmr_list, label=label)
......
......@@ -9,7 +9,7 @@ from . import figure
@click.command()
@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.legends_option()
@common_options.title_option()
@common_options.const_layout_option()
@common_options.style_option()
......
......@@ -16,7 +16,7 @@ from . import figure
@common_options.const_layout_option()
@common_options.show_dev_option()
@common_options.print_filenames_option(dflt=False)
@common_options.titles_option()
@common_options.legends_option()
@common_options.figsize_option()
@common_options.style_option()
@verbosity_option()
......@@ -63,7 +63,7 @@ def hist(ctx, scores, evaluation, **kwargs):
'If False, will annotate the plots hypothetically, instead '
'of with real data values of the calculated error rates.', True
)
@common_options.titles_option()
@common_options.legends_option()
@common_options.figsize_option()
@common_options.style_option()
@verbosity_option()
......
......@@ -13,7 +13,7 @@ from . import figure
@common_options.table_option()
@open_file_mode_option()
@common_options.output_log_metric_option()
@common_options.titles_option()
@common_options.legends_option()
@verbosity_option()
@click.pass_context
def metrics(ctx, scores, evaluation, **kwargs):
......
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