Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question
    
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

1 Answer 1

up vote 5 down vote accepted

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

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

Mathematica graphics

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

Mathematica graphics

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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