如何修改color bar的范围
(2013-01-01 11:20:36)
标签:
杂谈 |
手动调节 : edit - colormap 然后选择数值即可
转自 http://www.mathworks.com/support/solutions/en/data/1-4SZI19/index.html?product=ML&solution=1-4SZI19
How can I have a standard colorbar for different plots in MATLAB 7.0.4 (R14SP2)?
Date Last Modified: Friday, June 26, 2009
Solution ID: | 1-4SZI19 | |
Product: | MATLAB | |
Reported in Release: | R14SP2 | |
Platform: | Linux | |
Operating System: | Linux Any |
Subject:
How can I have a standard colorbar for different plots in MATLAB 7.0.4 (R14SP2)?
Problem Description:
I am trying to compare different sets of data, with different
sets of ranges using PCOLOR.
The COLORBAR function generates a different colorbar for each set
of data. Thus, it becomes difficult for me to compare the different
data sets, as the ranges and tick labes on the colorbars are
different for each data set. So, how can I have a standard colorbar
for different plots?
Solution:In order to have a standard colorbar for plots generated using
PCOLOR you first need to set the same ‘CLim’ property for the axes
of each plot before you enable the colorbar for that plot (i.e. by
executing the COLORBAR command). |