Eric Firing a écrit :
> You may need to post a small code example so we can see what you are 
> doing; but an interactive example using ipython -pylab may give you 
> enough information to answer your question:
Hi ,

Not really ;-), but no problem.

I got a fix.
The trick is to pass axes colorbar as argument to colorbar function:

    def update_colorbar(self):
        if (self.cb is None):
            self.cb = self.display.figure.colorbar(self.img,
                                                   ticks=self.cbticks,
                                                   format='%g')
        else:
            self.display.figure.colorbar(self.img,
                                         self.cb.ax,
                                         ticks=self.cbticks,
                                         format='%g')

that works perfectly.


Cheers,

-- 
http://scipy.org/FredericPetit


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to