Open shlomok613 opened 5 years ago
I tried running your code and got similar results. It is important to point out that in the first case the Image array is being updated (all rows) before it is shown/run with app.run()
.
I even tried moving to a subclass of SceneCanvas
to see if this performed as expected and it didn't. This makes me think we're missing something simple.
Got it! Try setting clim=[0, 1]
when creating your Image. By default this is set to 'auto'
and overwrites itself on the first draw. Auto will take the min/max of the current data and in your example that is (0, 0)
. It won't update these limits when you do set_data
. For best performance you should set a static limit or re-set the clim
property to 'auto'
every time you call set_data
.
I am having trouble updating an image visual from the timer. I can update it from a for loop like this:
But when I replace the for loop with a timer the display fails to update:
Can anybody help?
Shlomo