When I want to have equal length of the units on both x and y axis, I can use AspectRatio -> Automatic. But when I need the unit of x axis have length twice than the length of the unit of y axis, what is the option for this purpose?
Asked
Active
Viewed 218 times
1
user565739
- 1,119
- 1
- 9
- 14
-
?AspectRatio AspectRatio is an option for Graphics and related functions that specifies the ratio of height to width for a plot. >> – Dr. Wolfgang Hintze Dec 02 '14 at 20:03
-
1See this Q&A How to set the ratio between the vertical and horizontal scales of plots? – Dec 02 '14 at 20:14
1 Answers
1
You can fiddle around with PlotRange and AspectRatio:
Table[Plot[Sin[x], {x, -π, π}, Frame -> True,
AspectRatio -> 1/k], {k, 1, 3}]

Table[Plot[Sin[x], {x, -π, 2 π}, Frame -> True,
AspectRatio -> 1/k], {k, 1, 3}]

Table[Plot[Sin[x], {x, -2 π, 2 π},
PlotRange -> {{-2 π, 2 π}, {-3, 3}}, Frame -> True,
AspectRatio -> 1/k], {k, 0.5, 3}]
