Close issue #27, support x and y keywords in plot

This commit is contained in:
Lucas Verney 2016-04-15 15:22:00 +02:00
parent 7e1e456cec
commit b386a689f7
2 changed files with 1604 additions and 807 deletions

File diff suppressed because one or more lines are too long

View File

@ -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