Setting a pie chart background to white
Show older comments
Hi,
I'm new to MATLAB and this is my first question.
How do I set a pie chart background to white? I've tried 'whitebg' and 'colordef', and I've tried various 'set(handle...)'. I've searched Mathwork's website and I've Googled it. Hard to believe that something this simple is so hard to find, although I obviously could be missing something.
I only care how it appears on the display, not how it prints or otherwise exports.
Thanks.
Dave
Answers (1)
The background for the pie chart is the figure 'color' property, not one for the axes object.
set(gcf,'color','w') % or use the proper figure number if not current
Categories
Find more on Pie Charts in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!