ps_tr.UpdatePipeline()
# Replace the current view with chart line one
-cur_view = pvsimple.GetRenderView()
-if cur_view:
- delete_pv_object(cur_view)
-
xy_view1 = pvsimple.CreateXYPlotView()
xy_view1.ChartTitle = 'TEST table of real'
xy_view1.BottomAxisTitle = '[ Wt ]'
import pvsimple
# Get view
-view1 = pvsimple.GetRenderView()
+view = pvsimple.GetRenderView()
+if view:
+ delete_pv_object(view)
# Import MED file
med_file = datadir + "pointe.med"
med_reader = pvsimple.GetActiveSource()
# Create presentations
+view1 = pvsimple.CreateRenderView()
scalarmap = ScalarMapOnField(med_reader, entity, field_name, timestamp)
pvsimple.ResetCamera(view1)
delete_pv_object(source)
delete_pv_object(med_reader)
-# Clear views from scalar bar and update views
-for rview in pvsimple.GetRenderViews():
- rview.Representations.Clear()
- pvsimple.Render(rview)
+# Render views
+pvsimple.Render(view1)
+pvsimple.Render(view2)