I’m making an attempt to replace PyQt embedded Matplotlib determine each every now and then. Each time I wish to replace the determine I present two overlayed pictures, with the second having some transparency. The app is de facto gradual if I continuously use imshow two instances each time I wish to make an replace. So, I’m having bother implementing quick overlay.
I’ve tried the next:
- Calling imshow two instances, as soon as for again picture, and as soon as for entrance picture(right here I specify alpha), however the app is de facto gradual.
- Creating the PIL picture from numpy arrays and changing them to the RGBA with the intention to use the
Picture.mix from PIL bundle, as proven right here.
- Utilizing set_array on the matplotlib.picture.AxesImage which imshow returns, as acknowledged right here. However I am undecided methods to overlay the second picture utilizing set_array, and together with that specify alpha.
Photographs have following properties:
- They’re 2D pictures
- The pictures have medical background so the pixel values can go as much as 4000, and due to that the beforehand talked about second method did not fairly work.