5
$\begingroup$

How can I change ExclusionsStyle for a plot inside Manipulate?

Here's a sample that (though it shouldn't) seems to produce equivalent result to ExlusionsStyle->{None}:

Manipulate[
Plot[{1/(a - x), x/(x - b)}, {x, -10, 10},
Exclusions -> {b, a}, ExclusionsStyle -> {Dashed}], {a, -10, 10}, {b, -10, 10}]
$\endgroup$
6
$\begingroup$

You can give explicit lhs == rhs style exclusions to get dashed lines:

Manipulate[Plot[{1/(a - x), x/(x - b)}, {x, -10, 10}, 
    Exclusions -> {x == b, x == a}, 
    ExclusionsStyle -> Dashed], {{a, 0}, -10, 10}, {{b, 0}, -10, 10}]

enter image description here

$\endgroup$
  • $\begingroup$ Thanks, seems like you must rather than can.. $\endgroup$ – 0sh May 14 '12 at 21:10
3
$\begingroup$
Manipulate[
   Plot[{1/(a - x), x/(x - b)}, {x, -10, 10}, Exclusions -> {b, a}, 
         ExclusionsStyle -> {Directive[Thickness[0.03], Orange]}
   ], 
   {a, -10, 10}, {b, -10, 10}
]

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.