How to snapshot a figure image without axis
Show older comments
Hi,
How do I save the image without axis or annotations etc, using GETFRAME. Just leave the image data.
Thanks.
Accepted Answer
More Answers (1)
To Add on to Walter Roberson answer,
You can remove the colour bar on the right by using .
colorbar('off');
That is by using the following code, you will be able to see a clean plot of the spectrogram output and save the plot in the current location with the name spect01.png.
set(gca, 'Visible', 'off');
colorbar('off');
saveas(gcf,'spect01.png');
Here gcf return the handle of the current figure. 

1 Comment
Maximiliano Barbosa
on 24 Feb 2022
Thank you , was exactly what I need
Categories
Find more on Image Arithmetic 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!