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.

 Akzeptierte Antwort

Patrick Kalita
Patrick Kalita am 12 Jul. 2011

1 Stimme

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

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by