Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Custom colormap for matplotlib

Tags: colormap

Baz:

I wish to create a Colormap object which maps values to colors like this:


-1: (.8,0,.8)
-2: (.8,0,0)
-3: (.8,.4,0)
-4: (.8,.8,0)
-5: (0,.8,0)
-6: (0,.8,.8)

How do I do this?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Custom colormap for matplotlib

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×