I just got back from vacation sorry for the delay. If you
> haven't worked out your own solution yet, I took John's
> suggestions and made some very minor additions to them. If
> you are interested, I can post the resulting code which
> allows you to specify a base colormap and then override
> arbitrary sentinels with specified colors.
> One problem with John's algorithm as written in his
> original post, was that the sentinel was included in the
> 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
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 <shevitz@...652...> writes:
> I just got back from vacation sorry for the delay. If you
> haven't worked out your own solution yet, I took John's
> suggestions and made some very minor additions to them. If
> you are interested, I can post the resulting code which
> allows you to specify a base colormap and then override
> arbitrary sentinels with specified colors.
> One problem with John's algorithm as written in his
> original post, was that the sentinel was included in the
> 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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
I added a Wiki entry entitled "Plotting images with special values". It shows my current incarnation of how to plot images with special values mapped to specified colors. The user can plot arbitrary numbers of special values.
Danny