When I save an image, the background color is lost. How can I preserve the background color that is displayed on the screen?
For simple plots you can fill in the background with the desired color first. This amounts to putting down a rectangle with the vertices given by x and y. Here is an example: x=[0 0 1 1]; y=[0 1 1 0]; fill (x,y,[.8 .8 .8]); hold on plot ([0 1], [0 1]) set(gca,’AmbientLightColor’,[1 1 1]) hold off; The method above will not work with the pcolor command. To retain the background color when using the pcolor command use the command set(gcf,’InvertHardCopy’,’off’) DATE: 03-29-01 return to top Help • Help Desk 4-HELP (434-924-4357) • Help Request Form About • Contact Info • ITC Locations • Feedback Form • Site Info • Page Updated: 2009-10-08 • © 2010 by the Rector and Visitors of the University of Virginia Standards & Policy • Disclaimer • P3P Privacy Policy • Accessibility: WAI • 508 • Web Standards: XHTML • CSS University of Virginia Information Technology and Communication 108 Cresap Road P.O. Box 400217 Charlottesville, Virginia, 22904-4217 USA © 2010 by the Rector and Visitors of the Un
For simple plots you can fill in the background with the desired color first. This amounts to putting down a rectangle with the vertices given by x and y. Here is an example: x=[0 0 1 1]; y=[0 1 1 0]; fill (x,y,[.8 .8 .8]); hold on plot ([0 1], [0 1]) set(gca,’AmbientLightColor’,[1 1 1]) hold off; The method above will not work with the pcolor command. To retain the background color when using the pcolor command use the command set(gcf,’InvertHardCopy’,’off’) DATE: 03-29-01 return to top Help • Help Desk 4-HELP (434-924-4357) • Help Request Form About • Contact Info • ITC Locations • Feedback Form • Site Info • • Page Updated: 2010-07-07 • © 2010 by the Rector and Visitors of the University of Virginia Standards & Policy • Disclaimer • P3P Privacy Policy • Accessibility: WAI • 508 • Web Standards: XHTML • CSS University of Virginia Information Technology and Communication 108 Cresap Road P.O. Box 400217 Charlottesville, Virginia, 22904-4217 USA © 2010 by the Rector and Visitors of the
Related Questions
- Can the workstation lock screen be altered (skinned) to reflect my branding? Where I can customize background image in the lock screen?
- When I save an image, the background color is lost. How can I preserve the background color that is displayed on the screen?
- How to convert document including the background color and image?