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)
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
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Bjorn Gustavsson
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
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by