从Stata中的图形中删除阴影区域标题

时间:2016-06-19 16:08:00

标签: graph stata

我构建了此图表但无法删除/重命名阴影区域的标签。怎么做?

official documentation

line smunits timenew if maxcumul==158453||area smunits timenew if  timenew < 16.3&maxcumul==158453, legend(label(1 "Actual unit sales")) area("Weekly Sales") ytitle("Weekly Sales") xtitle("Week") title("All Oxi-Active, unit sales") 

1 个答案:

答案 0 :(得分:1)

要重命名阴影区域,您试过这个吗?

line smunits timenew if maxcumul==158453||area smunits timenew if  timenew < 16.3&maxcumul==158453, legend(label(1 "Actual unit sales")  label(2 “Name Here”)) area("Weekly Sales") ytitle("Weekly Sales") xtitle("Week") title("All Oxi-Active, unit sales")

即。添加label(2 “Name Here”)