【发布时间】:2016-03-28 10:51:26
【问题描述】:
我使用 pcolor 绘制了一个不错的绘图,但我想在绘图的特定区域放置一些点/点/标记。我有一个 600(y 方向)和 1200(x 方向)的域,我想在 x = 600 和 y=300 处设置点。
我做了以下事情:
figure; pcolor(X,Y,Z_interpolate); shading flat;
hold on
x = [ 600; 700 ...];
y = [ 300; 300 ...];
plot(x,y,'.','r');
但是,图中的点不显示(我的图的 pcolor 绘图工作正常)。我认为这与我与 pcolor 结合使用的 'plot' 函数有关,但我不确定。
感谢任何帮助。
【问题讨论】:
-
这并不清楚。有错误吗?积分没有出现吗?
-
积分没有显示出来。 Matlab 只给出了以下错误:''Error using plot''
-
试试这个
plot(x,y,'.r') -
尝试
'.r'而不是'.', 'r'
标签: matlab matlab-figure