Wolfram: Plot Options (2D)
Commonly used plot options.
AspectRatio
aspect ratio of the height and width of result.
AspectRatio -> 1→ result a square box, but the graphics may be distorted.AspectRatio -> Automatic→ result in real proportion of the graphics.
Plot[ Sin[x], {x, 1, 9}] Plot[ Sin[x], {x, 1, 9}, AspectRatio -> True ]
PlotRange
specify the x range and y range of the plot.
Plot[x Sin[x Pi], {x, 0, 5}, AspectRatio -> True] Plot[x Sin[x Pi], {x, 0, 5}, AspectRatio -> True, PlotRange -> {{0, 3}, {0, 3}}]
Control Smoothness of Curve
PlotPoints-
- Controls smoothness of the curve.
- Initial number of points to evaluate.
MaxRecursion-
- Controls smoothness at locations where the function fluctuates.
- Value is a integer, the number of times to repeat adoptive algorithm.
- A value of 5 is high.
Axes, Frames, GridLines
Axes -> TrueFrames -> TrueGridLines -> Automatic
Plot[Sin[x Pi], {x, -2, 2}, AspectRatio -> True, GridLines -> Automatic]