MATLAB Answers

J.S.
0

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

Asked by J.S.
on 7 Jun 2018
Latest activity Answered by Kelly Kearney
on 7 Jun 2018
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?

  0 Comments

Sign in to comment.

Products


Release

R2015b

1 Answer

Answer by Kelly Kearney
on 7 Jun 2018
 Accepted Answer

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 Comments

Sign in to comment.