How to fix a limit between 2 combined colormaps?
My problems is that I’m trying to use two combined colorbars to get more color range in depicting my values. But if I define clim ([100 350]) w the average gets used as the splitting point between the 2 colormaps (meaning here 225). Now, I know that I can fix the colorbar manually by shifting it in the figures and saving it then, but this is very impractical since I’m trying to create many figures. Is there any good line of code, that could help me fix the limit directly?
My code:
clim([100 350])
colormap([flipud(m_colmap(‘blues’)); colormap(slanCM(6))])
I would like to use the "blues’" colormap for values between 100 and 200, the other one for values between 200 and 350.
Any help would be greatly appreciated.My problems is that I’m trying to use two combined colorbars to get more color range in depicting my values. But if I define clim ([100 350]) w the average gets used as the splitting point between the 2 colormaps (meaning here 225). Now, I know that I can fix the colorbar manually by shifting it in the figures and saving it then, but this is very impractical since I’m trying to create many figures. Is there any good line of code, that could help me fix the limit directly?
My code:
clim([100 350])
colormap([flipud(m_colmap(‘blues’)); colormap(slanCM(6))])
I would like to use the "blues’" colormap for values between 100 and 200, the other one for values between 200 and 350.
Any help would be greatly appreciated. My problems is that I’m trying to use two combined colorbars to get more color range in depicting my values. But if I define clim ([100 350]) w the average gets used as the splitting point between the 2 colormaps (meaning here 225). Now, I know that I can fix the colorbar manually by shifting it in the figures and saving it then, but this is very impractical since I’m trying to create many figures. Is there any good line of code, that could help me fix the limit directly?
My code:
clim([100 350])
colormap([flipud(m_colmap(‘blues’)); colormap(slanCM(6))])
I would like to use the "blues’" colormap for values between 100 and 200, the other one for values between 200 and 350.
Any help would be greatly appreciated. colormap, clim, flipud MATLAB Answers — New Questions