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}]]
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]
Comments
Post a Comment