# Why does automatic scaling behave as it does in Plot? [duplicate]

The following command

Plot[Exp[-(x^2)], {x, -5, 5}]


draws

while the following command

Plot[Exp[-2 (x^2)], {x, -5, 5}]


draws

I.e. the scale is changing which seems unexpected.

-

## marked as duplicate by The Toad♦Jun 24 '13 at 13:42

Try PlotRange->All. –  Yves Klett Jun 24 '13 at 13:07
"reversed against expected" what do you mean by that? –  Vitaliy Kaurov Jun 24 '13 at 13:10
Mathematica is trying to identify a region of interest. Here, compared to your PlotRange the Peak is too narrow and Plot decides to truncate the y-PlotRange. Try Plot[Exp[-2 (x^2)], {x, -3, 3}] instead. –  Markus Roellig Jun 24 '13 at 13:22
@MarkusRoellig please post an answer with this. –  Suzan Cioc Jun 24 '13 at 13:39

Plot[Exp[-2 (x^2)], {x, -3, 3}]