开发者

Mathematica Dashing "Up and down"

Is there any reason that underlies mathematica's way of presenting this graph

ListPlot[
    Table[{x, x*01}, {x, -5, 5, .08}], 
PlotStyle -> White, 
Filling -> 0, 
FillingStyle -> {Dashed, Brown}]

While the dashing is present for the part of the graph above the zero boundary, another part 开发者_如何学编程of the graph has the filling that is solid.

Am I doing something wrong?


Not that wrong. Mathematica is interpreting your filling style as being Dashed below zero and Brown above. You just need another pair of braces, like so:

ListPlot[Table[{x, x*01}, {x, -5, 5, .08}], PlotStyle -> White, 
 Filling -> 0, FillingStyle -> {{Dashed, Brown}}]

Mathematica Dashing "Up and down"

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜