Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

See the Mathematica 'basic plotting' documentation:

Scroll down to the third plot on that page, which says the following: "The singularities can be omitted from the plot by specifying them in the plot's range."

According to this doc, if you enter this in Mathematica 9, you will get the result shown in that doc page:

Plot[Tan[x], {x, -3, -Pi/2, Pi/2, 3}]

But when I try it I get this pllim error:

Mathematica graphics

claiming too many things appearing after x, but that's what the doc says to do. I have searched here for anything relevant to no avail. What's going on with this?

share|improve this question
confirmed on 9.01 on Windows... and even the documentation marks the additional arguments in red. – Yves Klett Oct 29 '13 at 11:51
Works in v7. Fails in in 8.0.4. – Michael E2 Oct 29 '13 at 11:55
You could also (cross-)post this on, which may help to get WRI attention more quickly. Using the Exclusions option works, but I guess that is not your point. – Yves Klett Oct 29 '13 at 11:57

This appears to be a documentation issue. The desired plot can be obtained using:

Plot[Tan[x], {x, -3, 3}, Exclusions -> {-Pi/2, Pi/2}]
share|improve this answer

Your Answer


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.