How to do scatter/plot overlaying an imagesc/pcolor plot?
65 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix (200 x 200), which I do: imagesc(v(1:200),v2(1:200), matrix); This is an extrapolated Matrix, and now I wish to scatter / plot my data point observations locations on top of this matrix field.
How would I go about doing this? I thought maybe I could imagesc a matrix of the scattered observation with increased transparency? but I guess there must be a better way to do this..
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 8 月 25 日
Don't use pcolor() unless you're happy not displaying the last row and column of your image.
To overlay one image on top of another, see these links:
To plot or scatter points, then just call hold on and then scatter() or plot():
imshow(yourImage);
hold on;
plot(x,y, 'rd', 'MarkerSize', 30); % Plot red diamonds over image.
2 件のコメント
Adam
2015 年 8 月 26 日
The general idea should be the same whatever function you are using to plot your image data.
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!