Contour-plot - Delete lines in legend colorbar

4 views (last 30 days)
Mepe
Mepe on 25 Jun 2021
Commented: Mepe on 25 Jun 2021
The colorbar for a logarithmic contour plot shows many small intermediate lines that I would like not to include. Can this be removed?

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 25 Jun 2021
If you keep track of the handle returned by colorbar then it is easy to supress the ticks:
cbh = colorbar;
set(cbh,'TickLength',0.00)
However, I find these tickmarks very helpful to guide the eyes - especially for plots on logarithmic scales (but this is obviously a design choise depending on personal preferences).
HTH
  3 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by