how to saving the modified colormap

hello, i have one question:i want to edit the colorbar and save. i want to do the same colorbar.any help?? thanks.
in matlab i have

 Accepted Answer

4 Comments

thank you.but how to save the current axes colormap in a variable?
if you read the link you save it into a variable as
cmap = colormap(ax);
Or just cmap = colormap() for the current axes.
it's done but when i write colormap(axes,mycmap) the colorbar is hide. why??

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!