Matlab: overlay contour on image or pcolor in 3D plot


To do the overlay, we rasterize the image and then overlay a contour to make it work in a 3-D Matlab figure.

Example contour over image in 3-D Matlab figure

  1. flatten the contour onto the image in the default z=0 plane
  2. render as a resized image
  3. make a pcolor plot
  4. manipulate the underlying Surface object to an arbitrary 3-D location.

Perhaps not optimal or ideal, but it did work in a pinch.



Leave a Comment