I need to plot the equal width of colorbar like attached image . exampel [0 1 2 4 8 16 32] in all interval width of the colorbar should be same.

3 views (last 30 days)
I need to plot the equal width of colorbar like attached image . exampel [0 1 2 4 8 16 32] in all interval width of the colorbar should be same.
I attached my script in which i am plotting rainfall over Indian region, and also attached .mat files of data.
  4 Comments
Image Analyst
Image Analyst on 7 Aug 2021
I was all set to do it then noticed you didn't attach your data. I can't use .nc format data on some third party web site. Read it in to MATLAB and store it as a .mat file then attach here with the paperclip icon.

Sign in to comment.

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 7 Aug 2021
There are several tools for that on the file exchange. This for example seems to contain the feature you're looking for: non-uniform-contourf-imagesc-colorbar, This is another very good option: colormap-and-colorbar-utilities.
HTH
  4 Comments
DGM
DGM on 8 Aug 2021
You need to download the zip file and extract it. You'll need to add the extracted folder to the search path using pathtool.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!