MATLAB: Exponent Property of Colorbar

colorbarplot

In standard axes I am able to change the Exponent property to force scientific notation. In this specific case I have an axes that contains an image overlayed with a colormap, I use a colorbar as a legend to the colormap. I am not able to access the Exponent property of the colorbar through either the parent axes handle nor the colorbar handle.
I found a workaround on Stackoverflow that I can rewrite, but I just wanted to check if I'm missing something obvious. SO Link: Stackoverflow Link
Thank you for any insight.

Best Answer

cb = colorbar();
cb.Ruler.Exponent = 2;