Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BEA data analysis utils
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
Philipp Niedermayer
BEA data analysis utils
Commits
a2fc1ec9
Commit
a2fc1ec9
authored
2 years ago
by
Philipp Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
Improve shared axis plot
parent
714bd2ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plotting.py
+5
-8
5 additions, 8 deletions
plotting.py
with
5 additions
and
8 deletions
plotting.py
+
5
−
8
View file @
a2fc1ec9
...
@@ -73,14 +73,11 @@ def subplot_shared_labels(axes, xlabel=None, ylabel=None, clear=True):
...
@@ -73,14 +73,11 @@ def subplot_shared_labels(axes, xlabel=None, ylabel=None, clear=True):
"""
"""
for
r
in
range
(
axes
.
shape
[
0
]):
for
r
in
range
(
axes
.
shape
[
0
]):
for
c
in
range
(
axes
.
shape
[
1
]):
for
c
in
range
(
axes
.
shape
[
1
]):
if
ylabel
:
if
clear
:
axes
[
r
,
c
].
set
(
xlabel
=
None
,
ylabel
=
None
)
if
clear
:
axes
[
r
,
c
].
set
(
ylabel
=
None
)
if
c
==
0
or
not
axes
[
r
,
c
].
get_shared_y_axes
().
joined
(
axes
[
r
,
c
],
axes
[
r
,
0
]):
if
c
==
0
or
not
axes
[
r
,
c
].
get_shared_y_axes
().
joined
(
axes
[
r
,
c
],
axes
[
r
,
0
]):
axes
[
r
,
c
].
set
(
ylabel
=
ylabel
)
axes
[
r
,
c
].
set
(
ylabel
=
ylabel
)
if
r
==
axes
.
shape
[
0
]
-
1
or
not
axes
[
r
,
c
].
get_shared_x_axes
().
joined
(
axes
[
r
,
c
],
axes
[
-
1
,
c
]):
if
xlabel
:
axes
[
r
,
c
].
set
(
xlabel
=
xlabel
)
if
clear
:
axes
[
r
,
c
].
set
(
xlabel
=
None
)
if
r
==
axes
.
shape
[
0
]
-
1
or
not
axes
[
r
,
c
].
get_shared_x_axes
().
joined
(
axes
[
r
,
c
],
axes
[
-
1
,
c
]):
axes
[
r
,
c
].
set
(
xlabel
=
xlabel
)
def
grid_diagonal
(
ax
,
**
kwargs
):
def
grid_diagonal
(
ax
,
**
kwargs
):
for
k
,
v
in
dict
(
color
=
'
lightgray
'
,
lw
=
1
,
zorder
=-
100
).
items
():
for
k
,
v
in
dict
(
color
=
'
lightgray
'
,
lw
=
1
,
zorder
=-
100
).
items
():
...
...
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