From 0d561cb2531d293ff8f4cee2f73a242e56547139 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Fri, 20 Jan 2017 21:03:21 +0000 Subject: [PATCH] Now commiting correctly. Really. I promise --- trisurf/analyses.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/trisurf/analyses.py b/trisurf/analyses.py index 9a063d7..7b061f2 100644 --- a/trisurf/analyses.py +++ b/trisurf/analyses.py @@ -13,7 +13,8 @@ print(kwargs.get('args',None)) -def plotrunningavginteractive(run, **kwargs): +# can be wrapped to specify scalar_field) +def plotrunningavginteractive(run, scalar_field='vertices_idx', **kwargs): import matplotlib.pyplot as plt from trisurf import VTKRendering as vtk import math @@ -26,7 +27,7 @@ avg.append(np.average(col[:-i])) return avg def spawned_viewer(n): - vtk.Renderer(kwargs.get('args', None),kwargs.get('host',None),run, n) + vtk.Renderer(kwargs.get('args', None),kwargs.get('host',None),run, timestep=n,scalar_field=scalar_field) fig=plt.figure(1) ra=running_avg(table['hbar']) -- Gitblit v1.9.3