MATLAB: How to specify a custom colorbar for PIE plots in different subplots

barcolorfacemapMATLAB

I would like to specify a different colormap for each subplot in my figure.

Best Answer

There is no direct way to specify a different colormap for each subplot, you have to manually change the "Facecolor" property of each element. Use the attached MATLAB file: "PIE_colormap.m" as an example to customize the colormap for different subplots in a given figure.
If you would like to use different colormaps on each 'axes' object in the same figure, read Technical Note 1215 on the MathWorks support website.