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,6 +292,11 @@ class Figure():
|
|||||||
[4, 5, 6], group="a")
|
[4, 5, 6], group="a")
|
||||||
"""
|
"""
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
|
if "x" in kwargs and "y" in kwargs:
|
||||||
|
args = (kwargs["x"], kwargs["y"])
|
||||||
|
del kwargs["x"]
|
||||||
|
del kwargs["y"]
|
||||||
|
else:
|
||||||
raise exc.InvalidParameterError(
|
raise exc.InvalidParameterError(
|
||||||
"You should pass at least one argument to this function.")
|
"You should pass at least one argument to this function.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user