Re: [Matplotlib-users] update colorbar on new incoming data

2009-06-06 Thread feldmaus
Eric Firing 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 ran

[Matplotlib-users] update colorbar on new incoming data

2009-06-06 Thread feldmaus
Hi All, The User of my program should use a slider element which lets compute x,y and z and then my colorbar should also be updated with the new computed x,y, and z values. How to do this ? There is a set_colorbar() method, but i dont know how to use it. I also found a set_axes() method. Here

Re: [Matplotlib-users] changing x axis to y and y axis to x in colorbar Object

2009-06-06 Thread feldmaus
Eric Firing writes: > I don't understand what your question has to do with the colorbar; but > in anything like pcolor, if you swap X and Y, then at the same time you > need to transpose Z. Thanks, that was my Problem i had to transpose my z. :-) numpy.transpose(z) Regards Markus