tags:

views:

111

answers:

1

I'm sure this is an incredibly simple question but I've recently started using Mathematica so it's all new to me. How do you scale the y axis? I try the following but it won't compile.

Plot[y = {Exp[-(x^2+3x+2)]}, {x, 0, 5}, {y, 0, 1}]
+2  A: 

The PlotRange option is what you are looking for.

Plot[-x^2+3x+2, {x,0,5}, PlotRange->{0,1}]

zdav