The variable map contains the chosen colormap. See help colormap.
It's a little hard to read, but I think they are changing the color using this variable.

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!