Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.measure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.measure
Commits
0bf1fd5c
Commit
0bf1fd5c
authored
Apr 05, 2018
by
Theophile GENTILHOMME
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix det plots: axis was broken with the previous commit
parent
32922124
Pipeline
#18396
failed with stage
in 57 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
bob/measure/script/figure.py
bob/measure/script/figure.py
+10
-12
No files found.
bob/measure/script/figure.py
View file @
0bf1fd5c
...
...
@@ -394,9 +394,7 @@ class PlotBase(MeasureBase):
mpl
.
ylabel
(
self
.
_y_label
)
mpl
.
grid
(
True
,
color
=
self
.
_grid_color
)
mpl
.
legend
()
axis
=
[
self
.
_min_x
,
self
.
_max_x
,
self
.
_min_y
,
self
.
_max_y
]
if
None
not
in
axis
:
mpl
.
axis
(
axis
)
self
.
_set_axis
()
#gives warning when applied with mpl
fig
.
set_tight_layout
(
True
)
mpl
.
xticks
(
rotation
=
self
.
_x_rotation
)
...
...
@@ -417,6 +415,11 @@ class PlotBase(MeasureBase):
return
base
+
(
" %d (%s)"
%
(
idx
+
1
,
name
))
return
base
+
(
" (%s)"
%
name
)
def
_set_axis
(
self
):
axis
=
[
self
.
_min_x
,
self
.
_max_x
,
self
.
_min_y
,
self
.
_max_y
]
if
None
not
in
axis
:
mpl
.
axis
(
axis
)
class
Roc
(
PlotBase
):
''' Handles the plotting of ROC
...
...
@@ -513,15 +516,10 @@ class Det(PlotBase):
label
=
self
.
_label
(
'development'
,
dev_file
,
idx
)
)
def
end_process
(
self
):
''' Set specific axis for det '''
axlim
=
[
self
.
_min_x
,
self
.
_max_x
,
self
.
_min_y
,
self
.
_max_y
]
mpl
.
figure
(
1
)
plot
.
det_axis
(
axlim
)
if
self
.
_test
and
self
.
_split
:
mpl
.
figure
(
2
)
plot
.
det_axis
(
axlim
)
super
(
Det
,
self
).
end_process
()
def
_set_axis
(
self
):
axis
=
[
self
.
_min_x
,
self
.
_max_x
,
self
.
_min_y
,
self
.
_max_y
]
if
None
not
in
axis
:
plot
.
det_axis
(
axis
)
class
Epc
(
PlotBase
):
''' Handles the plotting of EPC '''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment