Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I save an image, the background color is lost. How can I preserve the background color that is displayed on the screen?

0
Posted

When I save an image, the background color is lost. How can I preserve the background color that is displayed on the screen?

0

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

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123