Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-19 Thread Jeremy Conlin
On Wed, Aug 18, 2010 at 10:11 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Try cbar.formatter.set_useOffset(False) cbar.formatter.set_scientific(True) cbar.formatter.set_powerlimits((0,2)) It gives me offsetText - x 10^3 and tick labels = [5.0002, 5.0004,...] Yes that is exactly what

Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-18 Thread Jae-Joon Lee
On Tue, Aug 17, 2010 at 11:06 PM, Jeremy Conlin jlcon...@gmail.com wrote: On Mon, Aug 16, 2010 at 6:13 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Using the set_powerlimits method didn't help? I couldn't get set_powerlimits or set_scientific to change anything in my colorbar scaling.  If I

Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-17 Thread Jeremy Conlin
On Mon, Aug 16, 2010 at 6:13 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Using the set_powerlimits method didn't help? I couldn't get set_powerlimits or set_scientific to change anything in my colorbar scaling. If I used setOffset(False) then there was no scaling; an improvement, but not

Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-16 Thread Jeremy Conlin
On Sun, Aug 15, 2010 at 10:49 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin jlcon...@gmail.com wrote: I have a problem with the scaling of the numbers on a colorbar.  The problem occurs when the numbers used as colorbar labels need to be scaled

Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-16 Thread Jae-Joon Lee
Using the set_powerlimits method didn't help? As far as I know, the current implementation does not allow a custom scale factor. But if the scale factor is power of 10 (10, 100, 1000, ...), I believe using set_powerlimits method (as in my previous example, or some variation) is good enough. Let

Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-15 Thread Jae-Joon Lee
On Fri, Aug 13, 2010 at 3:34 AM, Jeremy Conlin jlcon...@gmail.com wrote: I have a problem with the scaling of the numbers on a colorbar.  The problem occurs when the numbers used as colorbar labels need to be scaled (i.e. by 1E3).  The colorbar correctly puts the scaling value on the top of

[Matplotlib-users] How to improve colorbar scaling?

2010-08-12 Thread Jeremy Conlin
I have a problem with the scaling of the numbers on a colorbar. The problem occurs when the numbers used as colorbar labels need to be scaled (i.e. by 1E3). The colorbar correctly puts the scaling value on the top of the colorbar, but instead of of multiplying by a scale factor, addition is used