Show specific data points in contourf plots

10 visualizaciones (últimos 30 días)
Meng Yi
Meng Yi el 12 de Jul. de 2011
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.

Respuesta aceptada

Patrick Kalita
Patrick Kalita el 12 de Jul. de 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

Más respuestas (0)

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by