How to control where colorbar is positioned in plot?

By default it is inside the plot. No way to position it outside.
Thanks!