Show specific data points in contourf plots

2 ビュー (過去 30 日間)
Meng Yi
Meng Yi 2011 年 7 月 12 日
I am currently trying to obtain volcano / sabatier plots for my project. I have generated the contour plot as follows:
contourf(x,y,rate)
colorbar
I would like to know how would I be able to show a few specific points that were not in the original set of data used to generate the contour plot.
Thank you.

採用された回答

Patrick Kalita
Patrick Kalita 2011 年 7 月 12 日
How about scatter? You can use the fourth input argument to set the color of the point:
contourf(x, y, rate)
hold on
scatter(x_other, y_other, [], rate_other)
colorbar

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by