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 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vishal Temhare
am 7 Aug. 2021
Kommentiert: Vishal Temhare
am 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 Kommentare
Image Analyst
am 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.
Akzeptierte Antwort
Bjorn Gustavsson
am 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 Kommentare
DGM
am 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Colorbar finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!