悬赏 200 个论坛币 未解决
使用stata绘画饼图,由于图片最终要打印成黑白色,因此只能通过饼图内设置不同填充模式(如斜线、点等)来区分,如何做到?黑白的目标成像效果
clear
input str20 category percent
"收入1" 34.3
"收入2" 41.6
"收入3" 22.9
"收入4" 1.2
end
* 使用graph pie的高级选项
graph pie percent, over(category) ///
plabel(_all percent, format(%4.1f) size(medium)) ///
line(lcolor(white) lwidth(0.5)) ///
legend(position(5) ring(0)) ///
title("2024年收入结构") ///
pie(1, explode color(red)) ///
pie(2, color(blue)) ///
pie(3, color(green)) ///
pie(4, color(orange))