Is the upper limit of a color bar the true maximum value of the data in the color map, or is it larger ?

조회 수: 11 (최근 30일)
Reason for asking: When an ordinary graph is plotted, the x and y axis limits are often larger then the maximum values of my data. Does the same thing apply to color bars, or is the upper limit obtained via caxis exactly the same value as the maximum data value?

채택된 답변

Kelly Kearney
Kelly Kearney 2018년 6월 7일
The color limits are usually set to match the plotted data for most standard functions (pcolor, surf, imagesc, etc), although there may be some specialized functions out there that do some rounding. You can verify by getting the color limits from the axis in question:
get(ax, 'clim')
or
ax.CLim
and compare that to your data in question.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by