Show specific data points in contourf plots

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일

1 개 추천

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개)

카테고리

도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by