# How to make the Show function work in this case?

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}]]

-
–  image_doctor Jun 30 '12 at 8:29
add comment

## 1 Answer

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]


-
Congrats on 10k! :) –  rm -rf 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
add comment