diff --git a/Packages/vcs/Lib/VTKPlots.py b/Packages/vcs/Lib/VTKPlots.py index 640f1c1e24..474334a4b8 100644 --- a/Packages/vcs/Lib/VTKPlots.py +++ b/Packages/vcs/Lib/VTKPlots.py @@ -1246,12 +1246,10 @@ def renderTemplate(self,tmpl,data,gm,taxis,zaxis): s0=txt.split()[0] if s0 in ["Min","Max","Mean"]: returned["vtk_backend_%s_text_actor" % s0] = t - self.canvas.display_names.remove(d.name) - del(vcs.elements["display"][d.name]) else: returned["vtk_backend_%s_text_actor" % d.backend["vtk_backend_template_attribute"]] = t - self.canvas.display_names.remove(d.name) - del(vcs.elements["display"][d.name]) + self.canvas.display_names.remove(d.name) + del(vcs.elements["display"][d.name]) if taxis is not None: try: tstr = str(cdtime.reltime(taxis[0],taxis.units).tocomp(taxis.getCalendar()))