Skip to content
Snippets Groups Projects
Commit 917ab50f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Legend location conflicted with legend ncol

parent a5aa37c3
Branches
Tags
1 merge request!89Add a base class for subplot-based plots
......@@ -464,7 +464,7 @@ def legend_loc_option(dflt='best', **kwargs):
'-', ' ') if value else value
return value
return click.option(
'-lc', '--legend-loc', default=dflt, show_default=True,
'-ll', '--legend-loc', default=dflt, show_default=True,
type=click.Choice(['best', 'upper-right', 'upper-left',
'lower-left', 'lower-right', 'right',
'center-left', 'center-right', 'lower-center',
......
......@@ -85,7 +85,7 @@ def test_det():
with runner.isolated_filesystem():
result = runner.invoke(commands.det, ['-e', '--split', '--output',
'test.pdf', '--legends', 'A,B',
'-lc', 'upper-right',
'-ll', 'upper-right',
dev1, test1, dev2, test2])
if result.output:
click.echo(result.output)
......@@ -115,7 +115,7 @@ def test_epc():
result = runner.invoke(commands.epc, ['--output', 'test.pdf',
'--legends', 'A,B',
'--titles', 'TA,TB',
'-lc', 'upper-right',
'-ll', 'upper-right',
dev1, test1, dev2, test2])
if result.output:
click.echo(result.output)
......@@ -158,7 +158,7 @@ def test_hist_legends():
test2 = bob.io.base.test_utils.datafile('test-2.txt', 'bob.measure')
runner = CliRunner()
# share same legend for dev/eval of each system
# share same title for dev/eval of each system
with runner.isolated_filesystem():
result = runner.invoke(commands.hist, ['-e', '-sp', 111, '-ts', 'A,B',
dev1, test1, dev2, test2])
......@@ -166,7 +166,7 @@ def test_hist_legends():
click.echo(result.output)
assert_click_runner_result(result)
# individual legends for dev and eval
# individual titles for dev and eval
with runner.isolated_filesystem():
result = runner.invoke(commands.hist, ['-e', '-sp', 221, '-ts',
'A,B,C,D',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment