6
$\begingroup$

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?

$\endgroup$
4
  • $\begingroup$ Have you looked at AspectRatio in the options for Plot? $\endgroup$
    – rm -rf
    Commented May 6, 2012 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$ Commented May 6, 2012 at 5:52
  • $\begingroup$ Oh, in that case, have you looked at PlotRange? $\endgroup$
    – rm -rf
    Commented May 6, 2012 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$ Commented May 6, 2012 at 5:59

1 Answer 1

14
$\begingroup$

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

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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