MATLAB: Adding colorbar to ui axes in appdesigner

appdesignerapplication designercolorbarcolormapui axesuiaxes

Hello, I added a contour plot in uiaxes in appdesigner. I want to change its colormap and add a colorbar, but so far I could not figure it out. Any help will be appreciated. Thanks!

Best Answer

colorbar( hAxes )
will add a colourbar just like it does for normal axes.
colormap( hAxes, 'jet' )
should likewise change its colourmap to e.g. jet