update colorbar on new incoming data

Eric Firing <efiring@...83...> writes:

If x,y don't change, and if you are not using masked arrays, then you
might be able to add something like this:

         self.plots3.set_array(np.transpose(z).ravel())
         self.plots3.autoscale()
         self.figure.canvas.draw()

The colorbar range will be updated automatically.

Very very thank you, that worked for me :slight_smile:

If i did the help(self.plots3) after defining,

self.plots3 = self.subplot3.pcolor(X,Y,np.transpose(z))

i had seen this, damned.

again thanks for your answer.

regards Markus