From b0d3e9a50b96a061db55577bdb62477eeafb7027 Mon Sep 17 00:00:00 2001 From: Luke Campagnola <> Date: Fri, 23 Mar 2012 02:45:11 -0400 Subject: [PATCH] update to plot() function - all arguments are now passed through to PlotWindow. (this *should* be a backward-compatible change) --- __init__.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 86953817..a8ae98de 100644 --- a/__init__.py +++ b/__init__.py @@ -105,13 +105,14 @@ def plot(*args, **kargs): | All other arguments are used to plot data. (see :func:`PlotItem.plot() `) """ mkQApp() - if 'title' in kargs: - w = PlotWindow(title=kargs['title']) - del kargs['title'] - else: - w = PlotWindow() - if len(args)+len(kargs) > 0: - w.plot(*args, **kargs) + #if 'title' in kargs: + #w = PlotWindow(title=kargs['title']) + #del kargs['title'] + #else: + #w = PlotWindow() + #if len(args)+len(kargs) > 0: + #w.plot(*args, **kargs) + w = PlotWindow(*args, **kargs) plots.append(w) w.show() return w