Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.measure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Commits
917ab50f
Commit
917ab50f
authored
6 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
Legend location conflicted with legend ncol
parent
a5aa37c3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!89
Add a base class for subplot-based plots
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/measure/script/common_options.py
+1
-1
1 addition, 1 deletion
bob/measure/script/common_options.py
bob/measure/test_script.py
+4
-4
4 additions, 4 deletions
bob/measure/test_script.py
with
5 additions
and
5 deletions
bob/measure/script/common_options.py
+
1
−
1
View file @
917ab50f
...
...
@@ -464,7 +464,7 @@ def legend_loc_option(dflt='best', **kwargs):
'
-
'
,
'
'
)
if
value
else
value
return
value
return
click
.
option
(
'
-l
c
'
,
'
--legend-loc
'
,
default
=
dflt
,
show_default
=
True
,
'
-l
l
'
,
'
--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
'
,
...
...
This diff is collapsed.
Click to expand it.
bob/measure/test_script.py
+
4
−
4
View file @
917ab50f
...
...
@@ -85,7 +85,7 @@ def test_det():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
det
,
[
'
-e
'
,
'
--split
'
,
'
--output
'
,
'
test.pdf
'
,
'
--legends
'
,
'
A,B
'
,
'
-l
c
'
,
'
upper-right
'
,
'
-l
l
'
,
'
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
'
,
'
-l
c
'
,
'
upper-right
'
,
'
-l
l
'
,
'
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
legend
s for dev and eval
# individual
title
s for dev and eval
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'
-e
'
,
'
-sp
'
,
221
,
'
-ts
'
,
'
A,B,C,D
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment