How can I print the heatmap as grayscale?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
도현 김
am 12 Apr. 2021
Beantwortet: Richard Quist
am 6 Dez. 2021
A = rand(5)
heatmap(A, option)
I want to see heatmap in grayscale.
OR
Can I use 'saveas' to save in grayscale?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Richard Quist
am 6 Dez. 2021
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');
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!