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

This question already has an answer here:

The following command

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


enter image description here

while the following command

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


enter image description here

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

share|improve this question

marked as duplicate by R. M. Jun 24 '13 at 13:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

Your problem arises from having chosen such a broad x range in your second case. If want to focus on the peak, plot a narrower range around it. For example

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


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.