Commit ca078a1a authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

correct bug 32 axes.update

see issue 32 - in short matplotlib is a ****
parent 4426fd36
......@@ -109,7 +109,17 @@ class MyAxes(Axes):
# 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():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment