MATLAB: I want to control the color of a contour plot. I want to assign a specific color to a range of Z values. I will have 4 colors and I want to control the data ranges for these colors.

contour colors

I want to control the color of a contour plot. I want to assign a specific color to a range of Z values. I will have 4 colors and I want to control the data ranges for these colors.

Best Answer

  • Like this, perhaps?