具体代码
重点讲讲这个discretelegend吧,Creates a legend with entries that refer to plots, or group values, or both legend items.
如果不加上"/"后面的那些选项,那么标签会出现在图的底部(X轴下方,应该是wall-area),如下面所示
接着先容斜杠后面的选项
across:specifies the number of legend entries that are placed horizontally before the next row begins.
它只能是一个正数,然后这个选项的话不加的话,标签是水平输出的,就像上面的什么选项不加展示的一样。
across=1表示水平输出的标签只有一个,所以你看到across=1的时间3个标签都是在同一列的;如果across=2,那么表示水平输出的标签有2个了