Hey Eric, > > The colorbar method or pyplot function optionally resizes the image axes > and uses the liberated space to make an axes for itself. For your > application, you don't want to use this option; you need to make the > axes object manually and use the cax kwarg to tell colorbar to use it. > Or you could generate it automatically the first time, and then reuse it > for all subsequent colorbar calls. this is exactly what I worked out ;) I create the first colorbar and save the axis object it plots itself in:
self.colorbar = self.ui.widget.canvas.fig.colorbar(plt, ax = self.ui.widget.canvas.ax.get_axes()) Then I plot each new colorbar into that axes object by specifying the cax keyword via self.ui.widget.canvas.fig.colorbar(plt, cax = self.colorbar.ax) Thank you for your help. Cheers, Ralph ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users