Wednesday, 18 September 2013

Is there a way to put grid lines on top of a contour plot?

Is there a way to put grid lines on top of a contour plot?

I am using the contourf function to create a contour plot:

I would like to get grid lines to appear on top of the plane that shows
the contours.
I came across one solution, but it only works in 2D (that is when you view
the contour plot in 2D) which involved the following two commands:
grid on
set(gca,'layer','top');
However, the grid lines do not appear when viewing the axes in 3D. Is
there any way to do this simply?

No comments:

Post a Comment