MATLAB: Designating color to value in contourf

colormapcontourflarge data setMATLAB

I have a data range from 0 to ~66000 and I need to plot the color white only when z=0 in contourf. I have read through the colormap options related to contourf and none of them suit such a large data set or provide a specific enough answer. There must be an easy fix for this! Thanks in advance!

Best Answer

[~, hContour] = contourf(YourData, [0, other_levels_go_here]);
idx = hContour.LevelList == 0;
hContour.FacePrims(idx).ColorData = uint8([255; 255; 255; 255]);