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")
|
[4, 5, 6], group="a")
|
||||||
"""
|
"""
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
raise exc.InvalidParameterError(
|
if "x" in kwargs and "y" in kwargs:
|
||||||
"You should pass at least one argument to this function.")
|
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
|
# Extract custom kwargs (the ones from replot but not matplotlib) from
|
||||||
# kwargs
|
# kwargs
|
||||||
|
Loading…
Reference in New Issue
Block a user