cannot save image with white background
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Isabella
le 9 Avr 2014
Réponse apportée : Kurt R Petvipusit
le 13 Juil 2014
I can't manage to save my image with white background. I generated the image by using isocaps and isosurface. I used also contours and patch.
I tried the following: set(gcf,'invertHardcopy','off') print -djpeg thefilename.jpg print -dbmp thefilename.jpg
I also tried: [X,map]=getframe; >> imwrite(X,map,'thefilename.jpg')
Then I tried: saveas(gcf,'thefilename.png')
In all the cases I always get black background. Could somebody give a hint? Thanks in advance Isabella please find enclosed the image. I am using Matlab R2011b 32 bit 7.13.564
0 commentaires
Réponse acceptée
Image Analyst
le 9 Avr 2014
4 commentaires
Image Analyst
le 9 Avr 2014
Glad you figured it out - looks tricky. Sometimes even when using export_fig, it can be tricky, but it's almost always better than attempting to use the standard functions on your own.
Plus de réponses (1)
Kurt R Petvipusit
le 13 Juil 2014
Hi, you can use set(gcf, 'Color', 'w') before using the export_fig command to have a white background in your figure.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!