Python Forum
Updating matplotlib image
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating matplotlib image
#3
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
Reply


Messages In This Thread
Updating matplotlib image - by mcgillca - Dec-17-2017, 04:16 PM
RE: Updating matplotlib image - by SRG - Dec-17-2017, 04:55 PM
RE: Updating matplotlib image - by mcgillca - Dec-21-2017, 06:07 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020