how to change the colorbar spacing
38 views (last 30 days)
Show older comments
karen patricia gaitan de los rios on 12 Jun 2021
Commented: karen patricia gaitan de los rios on 3 Aug 2021
I want to make a plot like this.
I used the PCOLOR and CAXIS function ([0 10]) to set the range. But I want the rank from 0 to 300, but that each level or label increases in a different way to linear.
How can I edit the increase in the spacing of the colored bar of the plot?
My plot in this moment is this:
But the Cscale isn't what I need.
Vimal Rathod on 15 Jun 2021
You could use the 'TickLabels' property of colorbar to put the labels which you need in the places where you would like to have.
Refer to the following link for more information on colorbar and also have a look at other examples given in the link for more info.
Edited: karen patricia gaitan de los rios on 3 Aug 2021
Find more on Colormaps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!