Mathematica Dashing"上下"

use*_*438 3 graphics plot wolfram-mathematica

是否有任何理由支持mathematica呈现此图表的方式

ListPlot[
    Table[{x, x*01}, {x, -5, 5, .08}], 
PlotStyle -> White, 
Filling -> 0, 
FillingStyle -> {Dashed, Brown}]
Run Code Online (Sandbox Code Playgroud)

虽然在零边界上方的图形部分存在划线,但图形的另一部分具有实心的填充.

难道我做错了什么?

Ver*_*eia 7

那么错.Mathematica将您的填充风格解释为Dashed低于零及Brown以上.你需要另外一对括号,如下:

ListPlot[Table[{x, x*01}, {x, -5, 5, .08}], PlotStyle -> White, 
 Filling -> 0, FillingStyle -> {{Dashed, Brown}}]
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

希望有所帮助.