how to remove/kill the figure produced with colormap

12 views (last 30 days)
how to remove/kill the figure produced with colormap
colormap('parula')

Accepted Answer

Mike Croucher
Mike Croucher on 30 Aug 2022
If the colormap is the most recent command you've executed, it will be the current figure. As such, you can use
delete(gcf)
Where gcf stands for get current figure
  1 Comment
Sim
Sim on 30 Aug 2022
OK thanks :-) I thought there could be some command inside colomap like
colormap('parula','visible','off')

Sign in to comment.

More Answers (0)

Categories

Find more on Colormaps 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!