Commit b0d3e9a5 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

update to plot() function - all arguments are now passed through to PlotWindow.

 (this *should* be a backward-compatible change)
parent 3b2ef160
......@@ -105,13 +105,14 @@ def plot(*args, **kargs):
| All other arguments are used to plot data. (see :func:`PlotItem.plot() <pyqtgraph.PlotItem.plot>`)
if 'title' in kargs:
w = PlotWindow(title=kargs['title'])
del kargs['title']
w = PlotWindow()
if len(args)+len(kargs) > 0:
w.plot(*args, **kargs)
#if 'title' in kargs:
#w = PlotWindow(title=kargs['title'])
#del kargs['title']
#w = PlotWindow()
#if len(args)+len(kargs) > 0:
#w.plot(*args, **kargs)
w = PlotWindow(*args, **kargs)
return w
Supports Markdown
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