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 个)
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
类别
在 帮助中心 和 File Exchange 中查找有关 Pie Charts 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!