How to make longer and thicker ticks in the colorbar?

3 views (last 30 days)
Sim
Sim on 4 May 2021
Commented: Sim on 4 May 2021
How to make longer and thicker ticks in the colorbar?

Accepted Answer

Scott MacKenzie
Scott MacKenzie on 4 May 2021
Not sure the purpose, but this looks like what you're asking for...
y = randi(10,1,5);
tiledlayout('flow');
nexttile;
bar(y);
colorbar;
nexttile;
bar(y);
h = colorbar;
h.TickLength = .05; % default is 0.01
h.LineWidth = 1; % default is 0.5
  1 Comment
Sim
Sim on 4 May 2021
thanks a lot! Exactly those two - I did not find them in the matlab docuemntation..

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!