Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
ted-experiments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mateusz Pawlik
ted-experiments
Commits
8183161c
Commit
8183161c
authored
Mar 02, 2020
by
Mateusz Pawlik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes due to MatplotlibDeprecationWarning.
parent
07a19aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/plots/plot_experiments.py
src/plots/plot_experiments.py
+5
-5
No files found.
src/plots/plot_experiments.py
View file @
8183161c
...
...
@@ -77,7 +77,7 @@ if data['print_title'] != 'no' and 'title' in data:
ax
.
title
(
data
[
'title'
]
+
" - "
+
data
[
'dataset_name'
])
# set grid
if
'grid'
in
data
:
ax
.
grid
(
data
[
'grid'
])
ax
.
grid
(
data
[
'grid'
]
==
'on'
)
marker_cnt
=
0
y
=
[]
...
...
@@ -170,13 +170,13 @@ if 'ticks_font_size' in data['y_axis']:
if
'scale'
in
data
[
'y_axis'
]:
ax
.
set_yscale
(
data
[
'y_axis'
][
'scale'
],
nonposy
=
'clip'
)
if
'ymin'
in
data
[
'y_axis'
]:
ax
.
set_ylim
(
ymin
=
data
[
'y_axis'
][
'ymin'
])
ax
.
set_ylim
(
bottom
=
data
[
'y_axis'
][
'ymin'
])
if
'ymax'
in
data
[
'y_axis'
]:
ax
.
set_ylim
(
ymax
=
data
[
'y_axis'
][
'ymax'
])
ax
.
set_ylim
(
top
=
data
[
'y_axis'
][
'ymax'
])
if
'xmin'
in
data
[
'x_axis'
]:
ax
.
set_xlim
(
xmin
=
data
[
'x_axis'
][
'xmin'
])
ax
.
set_xlim
(
left
=
data
[
'x_axis'
][
'xmin'
])
if
'xmax'
in
data
[
'x_axis'
]:
ax
.
set_xlim
(
xmax
=
data
[
'x_axis'
][
'xmax'
])
ax
.
set_xlim
(
right
=
data
[
'x_axis'
][
'xmax'
])
if
'xticks'
in
data
[
'x_axis'
]:
x1
,
x2
,
y1
,
y2
=
plt
.
axis
()
plt
.
xticks
(
np
.
arange
(
x1
,
x2
,
step
=
data
[
'x_axis'
][
'xticks'
]))
...
...
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