How to change the colorbar limits in a previously saved fig file
8 views (last 30 days)
Show older comments
Ricardo Duarte on 11 Oct 2021
Commented: Ricardo Duarte on 14 Oct 2021
I have a figure containing a colorbar that I saved in a .fig format.
Now I need to open it and change the limits of the color bar. Im using
However, when I do this nothing happens.
What Im doing wrong?
Walter Roberson on 11 Oct 2021
figfilename = 'AppropriateFile.fig';
fig = openfig(figfilename);
cb = findobj(fig, 'type', 'Colorbar');
cb.Limits = [inferior_limit superior_limit];
After that you might want to save the figure indicates in fig into a new file.
More Answers (0)
Find more on Orange 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!