colorbar problem?

Hi,

I’ve noticed a problem with colorbar when specifying the levels and using ‘linear’.
The colors and spacing appear to be incorrect. An example test is attached (‘clrbr_test.py’) as well as a possible fix (patch ‘figure.diff’). The fix appears to work for most of the tests I’ve tried but I’m not too familiar with the code (and could be missing something) so more testing/review would be good.

It also changes the labeling slightly which can be changed back ( I prefer it this way ). Comments welcome.

The patch applies to figure.py from 0.87.2 and was tested on OSX 10.3

Cheers,

Seth

clrbr_test.py (249 Bytes)

figure.diff (4.26 KB)

···

Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2�/min or less.

Seth,

Thanks very much for the patch and test case. I will take a closer look, and apply it to svn if everything looks OK.

Eric

Seth Olsen wrote:

···

Hi,

I've noticed a problem with colorbar when specifying the levels and using 'linear'.
The colors and spacing appear to be incorrect. An example test is attached ('clrbr_test.py') as well as a possible fix (patch 'figure.diff'). The fix appears to work for most of the tests I've tried but I'm not too familiar with the code (and could be missing something) so more testing/review would be good.

It also changes the labeling slightly which can be changed back ( I prefer it this way ). Comments welcome.

The patch applies to figure.py from 0.87.2 and was tested on OSX 10.3

Cheers,

Seth

------------------------------------------------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls <http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com&gt; to the US (and 30+ countries) for 2¢/min or less.