Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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}]
share|improve this question

2 Answers 2

up vote 5 down vote accepted

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

share|improve this answer
    
Thanks, seems like you must rather than can.. –  0sh May 14 '12 at 21:10
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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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