At the bottom of this image, you'll see a nice colorbar that matches the colors of the graph correctly:
http://stribog.cc.umanitoba.ca/ceos/20100517_00z_prod/
I couldn't find a开发者_运维知识库nything that created a color bar with exactly the colors I wanted, it always seemed to involve a spectrum that included colors I didn't use.
I have a vector of colors I use for my data. Is there I way I can use that vector to create a color bar with only those colors?
I'm sure it can be done. In fact that sample plot looks suspiciously like IDL. Post some sample code of what you're doing now, I may be able to help, but starting from scratch is too hard.
精彩评论