update to plot() function - all arguments are now passed through to PlotWindow.
(this *should* be a backward-compatible change)
This commit is contained in:
parent
3b2ef16071
commit
b0d3e9a50b
15
__init__.py
15
__init__.py
@ -105,13 +105,14 @@ def plot(*args, **kargs):
|
|||||||
| All other arguments are used to plot data. (see :func:`PlotItem.plot() <pyqtgraph.PlotItem.plot>`)
|
| All other arguments are used to plot data. (see :func:`PlotItem.plot() <pyqtgraph.PlotItem.plot>`)
|
||||||
"""
|
"""
|
||||||
mkQApp()
|
mkQApp()
|
||||||
if 'title' in kargs:
|
#if 'title' in kargs:
|
||||||
w = PlotWindow(title=kargs['title'])
|
#w = PlotWindow(title=kargs['title'])
|
||||||
del kargs['title']
|
#del kargs['title']
|
||||||
else:
|
#else:
|
||||||
w = PlotWindow()
|
#w = PlotWindow()
|
||||||
if len(args)+len(kargs) > 0:
|
#if len(args)+len(kargs) > 0:
|
||||||
w.plot(*args, **kargs)
|
#w.plot(*args, **kargs)
|
||||||
|
w = PlotWindow(*args, **kargs)
|
||||||
plots.append(w)
|
plots.append(w)
|
||||||
w.show()
|
w.show()
|
||||||
return w
|
return w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user