|
Hi,
I am trying to draw markers on top of a 2D colormap plot. The meshgrid created for the 2D colormap plot will also be the locations of markers on the X-Y plane. However, not all the points from the grid will be plotted; instead, I shall plot only those points that satisfy a predefined condition. Can anybody help me in this regard?
Example:
-----------------------------------
figure(1)
I plotted the colormap plot as follows:
V1 = [ ] %length n
V2 = [ ] %length m
DATA = matrix (m, n)
[X,Y] = meshgrid(V1, V2);
surf(x,y,DATA );
shading interp
set(gca,'cameraposition',[0 0 180])
colormap(jet)
--------------------------------------
Now, I would like to plot marker as follows:
plot(V1(),V2(),'o','MarkerSize',10,'MarkerFaceColor','black','MarkerEdgeColor','black')
---------------------------------------
I plot this marker and it's found behind the colormap! Is there any way to solve it?
Or, better ways to draw markers on top of a color map?
Thanks in advance,
Shahriar
|