Reputation: 99
I am trying to plot a contour
with a colorbar
that has a small values (10e-9)
. This value appears at top of the colorbar
. How can I change the location of this value from top to bottom of the colorbar
. I want to move this value beneath the colorbar
because when I added label
above the colorbar
it overlapped with this value
I attached image for the figure.
Upvotes: 3
Views: 294
Reputation: 60444
You can accomplish what you want by first finding the handle to the color bar, then changing the yticklabel
ticklabels
property. This is a cell array of stings, one for each tick mark. You can fill in whatever you want to show there. The multiplier at the top will go away. With the text
function you can add your own modifier anywhere you want. But I think it looks nicer within the axis label.
However, the simple solution is to change the units you plot. Multiply everything by 10e9 before plotting, then add a nano prefix to your units.
Upvotes: 1