1
Linking clim value between multiple figures?
Post Flair (click to view more posts with a particular flair)
Post Body
I'm surprised I wasn't able to find anything by searching online. I am looking for the functionality of linkaxes but for the color scale (now called clim, used to be caxis). Is there a built-in way to do this? Let's say I do this:
figure;contourf(data1);
ax(1)=gca;
figure;contourf(data2);
ax(2)=gca;
figure;contourf(data3);
ax(3)=gca;
I want to then set ax
to all have the same clim value. Is there a better way to do it than to brute force it?
for i=1:3
mins(i)=min(clim(ax(i)));
maxs(i)=max(clim(ax(i)));
end
cmin=min(mins);
cmax=max(maxs);
for i=1:3
clim(ax(i),[cmin cmax]);
end
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/matlab/comm...