开发者

Mathematica Dashing "Up and down"

开发者 https://www.devze.com 2023-04-03 09:44 出处:网络
Is there any reason that underlies mathematica\'s way of presenting this graph ListPlot[ Table[{x, x*01}, {x, -5, 5, .08}],

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

精彩评论

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