This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / 2D Plots  /

  • Plot[ f , x , xmin , xmax ] generates a plot of f as a function of x from xmin to xmax.
  • Plot[ , , ... , x , xmin , xmax ] plots several functions .
  • Plot evaluates its arguments in a non-standard way (see Section A.4.2). You should use Evaluate to evaluate the function to be plotted if this can safely be done before specific numerical values are supplied.
  • Plot has the same options as Graphics, with the following additions:
  • Plot uses the default setting Axes -> True.
  • Plot initially evaluates f at a number of equally spaced sample points specified by PlotPoints. Then it uses an adaptive algorithm to choose additional sample points, attempting to produce a curve in which the bend between successive segments is less than MaxBend. It subdivides a given interval by a factor of at most PlotDivision.
  • You should realize that with the finite number of sample points used, it is possible for Plot to miss features in your function. To check your results, you should increase the setting for PlotPoints.
  • Plot returns a Graphics object.
  • See the Mathematica book: Section 1.9.1.
  • See also: ListPlot, Graphics.
  • Related packages: Graphics`FilledPlot`, Graphics`Graphics`.

    Further Examples

    Here are two plots of some trig functions; the second has a few options set. You can see all the possible options and their default settings with Options[Plot]].

    Evaluate the cell to see the graphic.