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

I can't get this to work, the Show function shows only the first plot. Why this happens and how to solve it?

Show[Plot[x^2, {x, 2, 10}], Plot[1 - x, {x, 1, -10}]]
share|improve this question
up vote 11 down vote accepted

The reason this happens is that the Show command uses the PlotRange options of the first plot, which in this case is disjoint with the range of the second plot, So you have to tell it to show all relevant regions by doing

Show[Plot[x^2, {x, 2, 10}], Plot[1 - x, {x, 1, -10}], 
 PlotRange -> All]


share|improve this answer
Congrats on 10k! :) – R. M. Jun 26 '12 at 22:09
@R.M Thanks - saving the world, 10 rep points at a time... – Jens Jun 26 '12 at 22:17
+1 Enlightened badge – Mr.Wizard Jun 27 '12 at 7:08

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.