[io] fix bug in set renderer size in vview.py
@@ -2193,6 +2193,8 @@ class VView(object):
self.renderer.AddLight(hlight)
self.renderer.SetBackground(*self.config.get('background_color', [.0,.0,.0]))
+ self.renderer_window.SetSize(*self.config['window_size'])
+ self.renderer_window.SetWindowName('vview: ' + self.opts.io_filename)
def setup_charts(self):
# Warning! numpy support offer a view on numpy array
# the numpy array must not be garbage collected!
@@ -2246,9 +2248,6 @@ class VView(object):
tview_prec.GetInteractor().AddObserver('RightButtonReleaseEvent',
self.input_observer.prec_plot_observer)
- # screen_size = self.renderer_window.GetScreenSize()
- self.renderer_window.SetSize(*self.config['window_size'])
- self.renderer_window.SetWindowName('vview: ' + self.opts.io_filename)
tview_iter.GetRenderer().GetRenderWindow().SetSize(600, 200)
tview_prec.GetRenderer().GetRenderWindow().SetSize(600, 200)
