Skip to content

Commit

Permalink
Merge pull request #1107 from chaosphere2112/remove_template_attr_dis…
Browse files Browse the repository at this point in the history
…plays

Properly remove template attribute displayplots (fix for #1096)
  • Loading branch information
doutriaux1 committed Mar 4, 2015
2 parents 45c40d5 + 0fdbc74 commit a4a7e23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Packages/vcs/Lib/VTKPlots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit a4a7e23

Please sign in to comment.