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)
Show older comments
Vishal Temhare
on 7 Aug 2021
Commented: Vishal Temhare
on 8 Aug 2021
path for data = https://drive.google.com/drive/folders/1Z2Rv_sPvFkM9mCte97BbQRp64_-DSq6B?usp=sharing
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
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.
Accepted Answer
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
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.
More Answers (0)
See Also
Categories
Find more on Colorbar 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!