lak3rs
lak3rs

Reputation: 51

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}]

Upvotes: 4

Views: 14567

Answers (1)

zdav
zdav

Reputation: 2758

The PlotRange option is what you are looking for.

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

Upvotes: 10

Related Questions