Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scaling axes in Mathematica

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}]
like image 696
lak3rs Avatar asked Dec 29 '22 15:12

lak3rs


1 Answers

The PlotRange option is what you are looking for.

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

like image 174
zdav Avatar answered Jan 02 '23 00:01

zdav