我需要绘制两个数字和一些点。点可以超出图像区域,这使得Matlab“自动缩放”以适合绘制的点。问题是这使得难以比较两个图像,因为两个图像的变焦不相同。那么,我该怎么做:
示例代码:
imshow(myFig1);
hold on;
% Here I need to hold/lock the zoom or...
plot(myPoints1(1,:),myPoints1(2,:),'+b');
% ... or set here the zoom based on a percentage of the image size
imshow(myFig2);
hold on;
% Here I need to hold/lock the zoom or...
plot(myPoints2(1,:),myPoints2(2,:),'+b');
% ... or set here the zoom based on a percentage of the image size