Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Function Visualization >

Plot

Updated In 6 Graphic
Plot[f, {x, xmin, xmax}]
generates a plot of f as a function of x from xmin to xmax.
Plot[{f1, f2, ...}, {x, xmin, xmax}]
plots several functions fi.
  • Plot treats the variable x as local, effectively using Block.
  • Plot has attribute HoldAll, and evaluates f only after assigning specific numerical values to x.
  • In some cases it may be more efficient to use Evaluate to evaluate f symbolically before specific numerical values are assigned to x.
  • No curve is drawn in any regions where f evaluates to None.
  • Plot has the same options as Graphics, with the following additions and changes:
AspectRatio1/GoldenRatioratio of width to height
AxesTruewhether to draw axes
ClippingStyleNonewhat to draw where curves are clipped  »
ColorFunctionAutomatichow to determine the coloring of curves
ColorFunctionScalingTruewhether to scale arguments to ColorFunction
EvaluationMonitorNoneexpression to evaluate at every function evaluation
ExclusionsAutomaticpoints in x to exclude
ExclusionsStyleNonewhat to draw at excluded points
FillingNonefilling to insert under each curve
FillingStyleAutomaticstyle to use for filling
MaxRecursionAutomaticthe maximum number of recursive subdivisions allowed
MeshNonehow many mesh points to draw on each curve
MeshFunctions{#1&}how to determine the placement of mesh points
MeshShadingNonehow to shade regions between mesh points
MeshStyleAutomaticthe style for mesh points
MethodAutomaticthe method to use for refining curves
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
PlotPointsAutomaticinitial number of sample points
PlotRange{Full,Automatic}the range of y or other values to include
PlotRangeClippingTruewhether to clip at the plot range
PlotStyleAutomaticgraphics directives to specify the style for each curve
RegionFunction(True&)how to determine whether a point should be included
WorkingPrecisionMachinePrecisionthe precision used in internal computations
  • Plot[Tooltip[{f1, f2, ...}], {x, xmin, xmax}] specifies that the fi should be displayed as tooltip labels for the corresponding curves.
  • Tooltip[f, label] specifies an explicit tooltip label for a curve.
  • 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, subdividing a given interval at most MaxRecursion times.
  • 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 try increasing the settings for PlotPoints and MaxRecursion.
  • On[Plot::accbend] makes Plot print a message if it is unable to reach a certain smoothness of curve.
  • With Mesh->All, Plot will explicitly draw a point at every position on each curve where each function was sampled.
  • The functions are evaluated all along each curve.
  • With ClippingStyle->Automatic a line is drawn at the top or bottom of the plotting area wherever a curve goes outside the range of the plot.
New in 1 | Last modified in 6
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team