【发布时间】:2020-08-19 15:44:52
【问题描述】:
我想在 Matlab 中的图像图上绘制线图
首先我绘制图像数据
figure(1); clf;
imagesc(t); colorbar
hold on;
axis tight
然后是线图
line(ysum,y,'Color','red')
hold off;
但是线图会删除图像并将背景设置为白色。 如何在图像上绘图?
【问题讨论】:
-
ysum或y可能是图像域之外的位置,导致轴限制发生变化。您可能在其中一个中具有较大的值,并最终在图的一角出现一个小图像。但是,请参阅minimal reproducible example,如果没有它,您的问题将无法回答。