Setting a pie chart background to white

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

回答(1 个)

dpb
dpb 2013-9-3
编辑:dpb 2013-9-3
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

类别

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by