From: Eric F. <ef...@ha...> - 2005-11-28 17:25:58
|
John, I think that the changes I made in CVS over the weekend provide a much easier way to do this, as illustrated in the new examples/image_masked.py. Eric John Hunter wrote: >>>>>>"Danny" == Danny Shevitz <sh...@la...> writes: > > > Danny> I just got back from vacation sorry for the delay. If you > Danny> haven't worked out your own solution yet, I took John's > Danny> suggestions and made some very minor additions to them. If > Danny> you are interested, I can post the resulting code which > Danny> allows you to specify a base colormap and then override > Danny> arbitrary sentinels with specified colors. > > Danny> One problem with John's algorithm as written in his > Danny> original post, was that the sentinel was included in the > Danny> normalization and should not be. > > I think this would make a nice wiki entry if you get the time. > > http://www.scipy.org/wikis/topical_software/MatplotlibCookbook > > > > JDH > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |