1

I read the thread How to make the Show function work in this case?. I think I have the same problem as discussed there. But when I try the to evaluate

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

it doesn't work. The output:

looks like it did nothing?.

How can I fix it?


Update: This comes afterClear["*", All];. Clear["*", All]; Show[Plot[x^2, {x, 2, 10}], Plot[1 - x, {x, 1, -10}], PlotRange -> All] makes it failed.

huangbiubiu
  • 155
  • 4

1 Answers1

4

Clear["*"] clears every symbol found on $ContextPath which is not Protected. So many System` symbols too...

Moreover, unless you want to double clear System`All, Clear["*", All] is made up syntax.

What you probably want is Clear["Global`*"] or ClearAll["Global`*"]

Weren't you warned by:

enter image description here

Kuba
  • 136,707
  • 13
  • 279
  • 740