Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
pyMOR
pymor
Commits
1b8373e1
Commit
1b8373e1
authored
Jul 22, 2020
by
René Fritze
Committed by
René Fritze
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[vis] fix legend assertion in MPL plots
parent
c2510210
Pipeline
#62957
passed with stages
in 58 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/pymor/discretizers/builtin/gui/jupyter/matplotlib.py
src/pymor/discretizers/builtin/gui/jupyter/matplotlib.py
+1
-1
No files found.
src/pymor/discretizers/builtin/gui/jupyter/matplotlib.py
View file @
1b8373e1
...
...
@@ -38,7 +38,7 @@ class MPLPlotBase:
if
not
config
.
HAVE_IPYWIDGETS
and
len
(
U
[
0
])
>
1
:
raise
ImportError
(
'cannot visualize: import of ipywidgets failed'
)
self
.
legend
=
(
legend
,)
if
isinstance
(
legend
,
str
)
else
legend
assert
legend
is
None
or
isinstance
(
legend
,
tuple
)
and
len
(
legend
)
==
len
(
U
)
assert
self
.
legend
is
None
or
isinstance
(
self
.
legend
,
tuple
)
and
len
(
self
.
legend
)
==
len
(
U
)
self
.
_set_limits
(
U
)
self
.
plots
=
[]
...
...
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