anyway to set the location of number in colorbar

1 Ansicht (letzte 30 Tage)
Yu Li
Yu Li am 11 Mär. 2019
Kommentiert: Yu Li am 11 Mär. 2019
I have a figure with fixed size, since the size is fixed, the location of number sometimes exceed the limit, leading to imcomplete display:
contour_test.jpg
is there anyway to move it to a lower place (red box in Figure)
Bests,
Yu

Antworten (1)

Image Analyst
Image Analyst am 11 Mär. 2019
You could use xticklabels to make them 0.005, etc.
colorbar('Ticks', [whatever], 'TickLabels', {'.0050', etc.})
  1 Kommentar
Yu Li
Yu Li am 11 Mär. 2019
The weakness of this method is that, if the value becomes too small, such as 5e-10, displaying it in this way may not be good. the best choice maybe move it to an appropriate location.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by