Why are pie charts in multiple subplots black?
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a program that generates many pie charts, each within its own subplot. Oddly, after I apply a legend or resize the figure manually, the pies all turn black so that you can no longer see the color wedges. If you follow the example below then maximize the figure so you can see the pies, they should be black. This used to work in 2010 and now in R2012a it does not. What could be the cause?
figure ;
nCol = 23 ; nRow = 15 ;
iPlot = 0 ;
for iRow = 1:nRow
for iCol = 1:nCol
iPlot = iPlot + 1 ;
subplot(nRow, nCol, iPlot) ;
pie(rand(1, 6))
end
end
% When we reach this point and resize, pies are in color
% Some time after this point, pies switch to black
delete(findobj('type', 'text'))
labels = {'A', 'B', 'C', 'D', 'E', 'F'} ;
legend(labels) ;
댓글 수: 3
Oleg Komarov
2012년 8월 1일
I cannot reproduce the problem (but I am using the pre-release 2012b). Still, it took several minutes to complete (no dedicated graphics card).
채택된 답변
Sean de Wolski
2012년 8월 1일
They're in color for me after the text deletion step (the text was in black).
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!