Overlay contour on image or pcolor in Matlab 3D plot

Related: Python: overlay contour on image or pcolor


To do the overlay, 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.

Categories:

Updated:

Leave a Comment