Commit 6330ca87 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Add legend displax options

parent 3e6667b4
Pipeline #19775 canceled with stage
...@@ -71,6 +71,8 @@ def metrics(ctx, scores, evaluation, **kargs): ...@@ -71,6 +71,8 @@ def metrics(ctx, scores, evaluation, **kargs):
@common_options.scores_argument(nargs=-1) @common_options.scores_argument(nargs=-1)
@common_options.title_option() @common_options.title_option()
@common_options.legends_option() @common_options.legends_option()
@common_options.legend_loc_option(dflt=4)
@common_options.no_legend_option()
@common_options.sep_dev_eval_option() @common_options.sep_dev_eval_option()
@common_options.output_plot_file_option(default_out='roc.pdf') @common_options.output_plot_file_option(default_out='roc.pdf')
@common_options.eval_option() @common_options.eval_option()
...@@ -118,6 +120,8 @@ def roc(ctx, scores, evaluation, **kargs): ...@@ -118,6 +120,8 @@ def roc(ctx, scores, evaluation, **kargs):
@common_options.title_option() @common_options.title_option()
@common_options.output_plot_file_option(default_out='det.pdf') @common_options.output_plot_file_option(default_out='det.pdf')
@common_options.legends_option() @common_options.legends_option()
@common_options.legend_loc_option(dflt=1)
@common_options.no_legend_option()
@common_options.x_label_option() @common_options.x_label_option()
@common_options.y_label_option() @common_options.y_label_option()
@common_options.sep_dev_eval_option() @common_options.sep_dev_eval_option()
...@@ -162,6 +166,8 @@ def det(ctx, scores, evaluation, **kargs): ...@@ -162,6 +166,8 @@ def det(ctx, scores, evaluation, **kargs):
@common_options.title_option() @common_options.title_option()
@common_options.output_plot_file_option(default_out='epc.pdf') @common_options.output_plot_file_option(default_out='epc.pdf')
@common_options.legends_option() @common_options.legends_option()
@common_options.legend_loc_option(dflt=9)
@common_options.no_legend_option()
@common_options.points_curve_option() @common_options.points_curve_option()
@common_options.const_layout_option() @common_options.const_layout_option()
@common_options.style_option() @common_options.style_option()
......
...@@ -104,7 +104,7 @@ def test_roc(): ...@@ -104,7 +104,7 @@ def test_roc():
'data/test-5col.txt') 'data/test-5col.txt')
with runner.isolated_filesystem(): with runner.isolated_filesystem():
result = runner.invoke(commands.roc, ['--split', '--output', result = runner.invoke(commands.roc, ['--split', '--output',
'test.pdf', '-S', 'test.pdf', '-S', '-lc', 9,
dev1, test1, dev2, test2]) dev1, test1, dev2, test2])
if result.output: if result.output:
click.echo(result.output) click.echo(result.output)
......
Supports Markdown
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