Wolfram: Plot Options (2D)

By Xah Lee. Date: . Last updated: .

Commonly used plot options.

AspectRatio

aspect ratio of the height and width of result.

wl Plot AspectRatio 2025-06-23 11881
wl Plot AspectRatio 2025-06-23 11881
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.

wl PlotRange 2025-06-26 2e71b
wl PlotRange 2025-06-26 2e71b
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

wl GridLines 2025-06-26 2e8f7
wl GridLines 2025-06-26 2e8f7
Plot[Sin[x Pi], {x, -2, 2}, AspectRatio -> True, GridLines -> Automatic]

Ticks

Plot Labels

Wolfram. Plot and Visualization