Dec-21-2017, 06:07 PM
Dear SRG,
Thanks for that - it wasn't quite what I needed, but it did give me somewhere to look.
It turns out that the plot needs to be active for set_data to work - so that's why the image did not update when I set block = False.
The solution I came up with was to use threads - I left the plot active in the main thread (there are reports of problems when mathplotlib is used in a secondary thread) and updated the plot in another thread - this works well, and allows me to use the zoom, pan etc functions in the mathplotlib image window.
Thank you for your help,
Colin
Thanks for that - it wasn't quite what I needed, but it did give me somewhere to look.
It turns out that the plot needs to be active for set_data to work - so that's why the image did not update when I set block = False.
The solution I came up with was to use threads - I left the plot active in the main thread (there are reports of problems when mathplotlib is used in a secondary thread) and updated the plot in another thread - this works well, and allows me to use the zoom, pan etc functions in the mathplotlib image window.
Thank you for your help,
Colin