Show specific data points in contourf plots

13 views (last 30 days)
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.

Accepted Answer

Patrick Kalita
Patrick Kalita on 12 Jul 2011
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

More Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!