# Change the height of a function being plotted

How do I alter the height of any function plot using the Plot function?

Mathematica seems to limit the height of the plot up to the range of a function and distort the ratio of the Plot

Here in the above example the plot has a distorted axes ratio. How do I correct it?

-
Have you looked at AspectRatio in the options for Plot? –  rm -rf May 6 '12 at 5:37
That doesnt alter the range display it just alters the relative height and width of the whole plot not only the YAxis –  The-Ever-Kid May 6 '12 at 5:52
Oh, in that case, have you looked at PlotRange? –  rm -rf May 6 '12 at 5:52
Tried that it does what I was looking for .But it increased the height of the plot graphic . Doesn't matter I can always use AspectRatio .I got this Finally -> Plot –  The-Ever-Kid May 6 '12 at 5:59
add comment

## 1 Answer

Maybe AspectRatio -> Automatic which gives a 1:1 scaling of your function?

Plot[Sin[x], {x, -12, 12}, AspectRatio -> Automatic]


If you take issue with the tight spaced tick-marks you can control that with Ticks:

Plot[Sin[x], {x, -12, 12}, AspectRatio -> Automatic, Ticks -> {Automatic, {-1, 1}}]


-
Doesn't The YAxis look too congested? –  The-Ever-Kid May 6 '12 at 6:01
@The-Ever-Kid ah, so your complaint is the tick-marks? –  Mr.Wizard May 6 '12 at 6:05
yup and thanks..... –  The-Ever-Kid May 6 '12 at 6:14
add comment