How can I print the heatmap as grayscale?
Mostra commenti meno recenti
A = rand(5)
heatmap(A, option)
I want to see heatmap in grayscale.
OR
Can I use 'saveas' to save in grayscale?
Risposta accettata
Più risposte (1)
Richard Quist
il 6 Dic 2021
0 voti
As of R2021a the exportgraphics function supports a Colorspace option for both image and vector formats that you can use to generate grayscale output:
exportgraphics(gca, 'output.jpg', 'colorspace', 'gray');
exportgraphics(gca, 'output.pdf', 'colorspace', 'gray');
Categorie
Scopri di più su Data Distribution Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!