python - combine colormaps matplotlib -


this question has answer here:

i use matplotlib plot temperature data combustion simulations, temperature in flame ranging 3200k - 5500k , temperature outside of flame ranging 300k 1000k. want generate projection plots using 2 different colormaps, 1 within flame , 1 outside of it, show slight variations in both regions. don't see temperatures in intermediate region of 1000k - 3200k, waste resolution in colormap using 1 map entire 300k - 5500k range. tried using of diverging maps, still miss small variations @ high , low ends.

does have suggestions how combine 2 colormaps one, using 1 of colormaps each temperature range?

edit

to make question more specific: want use matlplotlib's 'hot' colormap data points in 3200 - 5500 range , 'cool' data points in 300 - 1000 range.

is there way source code these 2 colormaps, normalize them respective start , end points, , combine both 1 cmap?

here's great write on creating custom color maps: http://cresspahl.blogspot.com/2012/03/expanded-control-of-octaves-colormap.html

you can modify color changes around data set , leave portion that's not represented unchanged.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -