Setting the colormap to be consistent across axes.
I love getting short, concise questions from fellow MATLAB users. One that I got recently looked like this:
I have some data that I want to plot with contourf using a colormap that spans from 0 to 1, but with everything I have tried the range keeps resetting to the range of the current data being plotted. I want a constant colormap range so that I can accurately compare plots with data that span different ranges.This is a question that is applicable to many people, in different situations. The short answer is that you set the CLIM property of the axes. The long answer is in the video!
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。