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?

  • $\begingroup$ Have you looked at AspectRatio in the options for Plot? $\endgroup$ – rm -rf May 6 '12 at 5:37
  • $\begingroup$ That doesnt alter the range display it just alters the relative height and width of the whole plot not only the YAxis $\endgroup$ – The-Ever-Kid May 6 '12 at 5:52
  • $\begingroup$ Oh, in that case, have you looked at PlotRange? $\endgroup$ – rm -rf May 6 '12 at 5:52
  • $\begingroup$ 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 $\endgroup$ – The-Ever-Kid May 6 '12 at 5:59

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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