How to display coordinates of points in "contourf"?
Show older comments
I have three matrices, X, Y, and Z. I am creating a filled contour plot using the command
contourf(X,Y,Z)
How can I display the coordinates of all points in the plot? I can use "Data Cursor" in figure environment to mark coordinates of points individually but this may take a lot of time depending on the number of points.
4 Comments
jonas
on 6 Aug 2018
What do you mean by displaying coordinates? The coordinates are given by the y- and x-axes and the z-value is given by the colorbar.
Ali Baig
on 6 Aug 2018
jonas
on 6 Aug 2018
Still unclear. Do you want to overlay the contourf with a grid showing all coordinates, like [x1,y1]? All coordinates included?
Ali Baig
on 6 Aug 2018
Accepted Answer
More Answers (1)
Afshin Aghayan
on 8 Oct 2019
0 votes
you can use this code for displaying any data in the form of [x, y, f(x,y)] or data with coordinate
Categories
Find more on Contour Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!