Hi I'm plotting several curves and want one of them to be dashed when negative and solid when positive, any idea how this can be obtained?
This is what I have so far ( example ):
Plot[{v, v - 10 , v + 10}, {v, -9, 9},PlotStyle -> {Blue, Directive[Dashed,Red], Red}]
Cheers


PlotStyle -> {Blue, Directive[Dashed, Red], Red}? Or do you want a line to be dashed up to some point and then solid after? -- What did you mean by "the second and second plots"? – Michael E2 Oct 11 '15 at 12:23Plot[{ConditionalExpression[v, v < 0], ConditionalExpression[v, v >= 0]}, {v, -9, 9}, PlotStyle -> {Directive[Blue, Dashed], Blue}]? – J. M.'s missing motivation Oct 11 '15 at 12:56