Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yori Fournier
myplotlib
Commits
ca078a1a
Commit
ca078a1a
authored
Mar 06, 2017
by
Yori 'AGy' Fournier
Browse files
correct bug 32 axes.update
see issue 32 - in short matplotlib is a ****
parent
4426fd36
Changes
1
Hide whitespace changes
Inline
Side-by-side
myAxes.py
View file @
ca078a1a
...
...
@@ -109,7 +109,17 @@ class MyAxes(Axes):
return
(
True
)
# UPDATE -------------------------------------------------------------
def
update
(
self
,
**
kwargs
):
def
update
(
self
,
*
args
,
**
kwargs
):
# Because matplotlib.axes.update expect kwargs and not **kwargs ... (stupid!!)
if
len
(
args
):
# catch matplotlib kwargs
for
key
in
args
[
0
].
keys
():
# check if some of them are keywords
if
key
in
self
.
keywords
.
keys
():
self
.
keywords
[
key
]
=
args
[
0
][
key
]
# if found update
del
args
[
0
][
key
]
# and suppress
Axes
.
update
(
self
,
args
[
0
])
# update matplotlib.Axes
for
key
in
kwargs
.
keys
():
...
...
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