Close issue #27, support x and y keywords in plot
This commit is contained in:
parent
7e1e456cec
commit
b386a689f7
2402
Examples.ipynb
2402
Examples.ipynb
File diff suppressed because one or more lines are too long
@ -292,8 +292,13 @@ class Figure():
|
||||
[4, 5, 6], group="a")
|
||||
"""
|
||||
if len(args) == 0:
|
||||
raise exc.InvalidParameterError(
|
||||
"You should pass at least one argument to this function.")
|
||||
if "x" in kwargs and "y" in kwargs:
|
||||
args = (kwargs["x"], kwargs["y"])
|
||||
del kwargs["x"]
|
||||
del kwargs["y"]
|
||||
else:
|
||||
raise exc.InvalidParameterError(
|
||||
"You should pass at least one argument to this function.")
|
||||
|
||||
# Extract custom kwargs (the ones from replot but not matplotlib) from
|
||||
# kwargs
|
||||
|
Loading…
Reference in New Issue
Block a user