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

Answers (1)

dpb
dpb on 3 Sep 2013
Edited: dpb on 3 Sep 2013
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

Products

Asked:

on 2 Sep 2013

Community Treasure Hunt

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

Start Hunting!