Plot
✖
Plot
Details and Options




- Plot is known as a function plot or graph of a function.
- Plot evaluates f at values of x in the domain being plotted over and connects the points {x,f[x]} to form a curve showing how f varies with x. It visualizes the curve
.
- Gaps are left at any x where the fi evaluate to anything other than real numbers or Quantity.
- The limits xmin and xmax can be real numbers or Quantity expressions.
- The region reg can be any RegionQ object in 1D.
- 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.
- The following wrappers w can be used for the fi:
-
Annotation[fi,label] provide an annotation for the fi Button[fi,action] evaluate action when the curve for fi is clicked Callout[fi,label] label the function with a callout Callout[fi,label,pos] place the callout at relative position pos EventHandler[fi,events] define a general event handler for fi Highlighted[fi,effect] dynamically highlight fi with an effect Highlighted[fi,Placed[effect,pos]] statically highlight fi with an effect at position pos Hyperlink[fi,uri] make the function a hyperlink Labeled[fi,label] label the function Labeled[fi,label,pos] place the label at relative position pos Legended[fi,label] identify the function in a legend PopupWindow[fi,cont] attach a popup window to the function StatusArea[fi,label] display in the status area on mouseover Style[fi,styles] show the function using the specified styles Tooltip[fi,label] attach a tooltip to the function Tooltip[fi] use functions as tooltips - Wrappers w can be applied at multiple levels:
-
w[fi] wrap the fi w[{f1,…}] wrap a collection of fi w1[w2[…]] use nested wrappers - Callout, Labeled, and Placed can use the following positions pos:
-
Above position above curve Below position below curve Before position before curve After position after curve Start position at start of each curve End position at end of each curve x near the curve at a position x Scaled[s] scaled position s along the curve {s,Above} above relative position at position s along the curve {s,Below} below relative position at position s along the curve {pos,epos} epos in label placed at relative position pos of the curve - Plot has the same options as Graphics, with the following additions and changes: [List of all options]
-
AspectRatio 1/GoldenRatio ratio of height to width Axes True whether to draw axes ClippingStyle None what to draw where curves are clipped » ColorFunction Automatic how to determine the coloring of curves ColorFunctionScaling True whether to scale arguments to ColorFunction EvaluationMonitor None expression to evaluate at every function evaluation Exclusions Automatic points in x to exclude ExclusionsStyle None what to draw at excluded points Filling None filling to insert under each curve FillingStyle Automatic style to use for filling LabelingSize Automatic maximum size of callouts and labels MaxRecursion Automatic the maximum number of recursive subdivisions allowed Mesh None how many mesh points to draw on each curve MeshFunctions {#1&} how to determine the placement of mesh points MeshShading None how to shade regions between mesh points MeshStyle Automatic the style for mesh points Method Automatic the method to use for refining curves PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotHighlighting Automatic highlighting effect for curves PlotLabel None overall label for the plot PlotLabels None labels to use for curves PlotLayout Automatic how to position curves PlotLegends None legends for curves PlotPoints Automatic initial number of sample points PlotRange {Full,Automatic} the range of y or other values to include PlotRangeClipping True whether to clip at the plot range PlotStyle Automatic graphics directives to specify the style for each curve PlotTheme $PlotTheme overall theme for the plot RegionFunction (True&) how to determine whether a point should be included ScalingFunctions None how to scale individual coordinates TargetUnits Automatic units to display in the plot WorkingPrecision MachinePrecision the precision used in internal computations - Possible settings for ClippingStyle are:
-
Automatic use a dotted line for the clipped portion None omit the clipped portion of the curve style use style for the clipped portion - Possible settings for PlotLayout that show single curves in multiple plot panels include:
-
"Column" use separate curves in a column of panels "Row" use separate curves in a row of panels {"Column",k},{"Row",k} use k columns or rows {"Column",UpTo[k]},{"Row",UpTo[k]} use at most k columns or rows - With the default settings Exclusions->Automatic and ExclusionsStyle->None, Plot breaks curves at discontinuities and singularities it detects. Exclusions->None joins across discontinuities and singularities.
- Exclusions->{x1,x2,…} is equivalent to Exclusions->{x==x1,x==x2,…}.
- Possible highlighting effects for Highlighted and PlotHighlighting include:
-
style highlight the indicated curve "Ball" highlight and label the indicated point in a curve "Dropline" highlight and label the indicated point in a curve with droplines to the axes "XSlice" highlight and label all points along a vertical slice "YSlice" highlight and label all points along a horizontal slice Placed[effect,pos] statically highlight the given position pos - Highlight position specifications pos include:
-
x, {x} effect at {x,y} with y chosen automatically {x,y} effect at {x,y} {pos1,pos2,…} multiple positions posi - PlotLegends->"Expressions" uses the fi as the legend text.
- 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.
- Since only a finite number of sample points are used, it is possible for Plot to miss features of f. Increasing the settings for PlotPoints and MaxRecursion will often catch such features.
- Themes that affect curves include:
-
"ThinLines" thin plot lines "MediumLines" medium plot lines "ThickLines" thick plot lines - The arguments supplied to functions in MeshFunctions and RegionFunction are x, y. Functions in ColorFunction are by default supplied with scaled versions of these arguments.
- Possible settings for ScalingFunctions include:
-
sy scale the y axis {sx,sy} scale x and y axes - Each scaling function si is either a string "scale" or {g,g-1}, where g-1 is the inverse of g.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio 1/GoldenRatio ratio of height to width Axes True whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ClippingStyle None what to draw where curves are clipped ColorFunction Automatic how to determine the coloring of curves ColorFunctionScaling True whether to scale arguments to ColorFunction ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool Epilog {} primitives rendered after the main plot EvaluationMonitor None expression to evaluate at every function evaluation Exclusions Automatic points in x to exclude ExclusionsStyle None what to draw at excluded points Filling None filling to insert under each curve FillingStyle Automatic style to use for filling FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic LabelingSize Automatic maximum size of callouts and labels LabelStyle {} style specifications for labels MaxRecursion Automatic the maximum number of recursive subdivisions allowed Mesh None how many mesh points to draw on each curve MeshFunctions {#1&} how to determine the placement of mesh points MeshShading None how to shade regions between mesh points MeshStyle Automatic the style for mesh points Method Automatic the method to use for refining curves PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotHighlighting Automatic highlighting effect for curves PlotLabel None overall label for the plot PlotLabels None labels to use for curves PlotLayout Automatic how to position curves PlotLegends None legends for curves PlotPoints Automatic initial number of sample points PlotRange {Full,Automatic} the range of y or other values to include PlotRangeClipping True whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotStyle Automatic graphics directives to specify the style for each curve PlotTheme $PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RegionFunction (True&) how to determine whether a point should be included RotateLabel True whether to rotate y labels on the frame ScalingFunctions None how to scale individual coordinates TargetUnits Automatic units to display in the plot Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks WorkingPrecision MachinePrecision the precision used in internal computations



List of all options




Examples
open allclose allBasic Examples (5)Summary of the most common use cases

https://wolfram.com/xid/0obfm-fu8

Plot several functions with a legend:

https://wolfram.com/xid/0obfm-kl2


https://wolfram.com/xid/0obfm-54akdv


https://wolfram.com/xid/0obfm-pxwrd7


https://wolfram.com/xid/0obfm-homxwa

Plot multiple filled curves, automatically using transparent colors:

https://wolfram.com/xid/0obfm-eyldpo

Scope (33)Survey of the scope of standard use cases
Sampling (10)
More points are sampled when the function changes quickly:

https://wolfram.com/xid/0obfm-c447wh

The plot range is selected automatically:

https://wolfram.com/xid/0obfm-hbhgp

Ranges where the function becomes nonreal are excluded:

https://wolfram.com/xid/0obfm-hr3ntf

The curve is split when there are discontinuities in the function:

https://wolfram.com/xid/0obfm-sg43f

Use Exclusions->None to draw a connected curve:

https://wolfram.com/xid/0obfm-e1amiv

Use PlotPoints and MaxRecursion to control adaptive sampling:

https://wolfram.com/xid/0obfm-gp6n6r

Use PlotRange to focus in on areas of interest:

https://wolfram.com/xid/0obfm-ywf6o

The domain can be specified by a region:

https://wolfram.com/xid/0obfm-rh06h

https://wolfram.com/xid/0obfm-sb0bj

Specify a domain using a MeshRegion:

https://wolfram.com/xid/0obfm-en76be

https://wolfram.com/xid/0obfm-g6fnx


https://wolfram.com/xid/0obfm-4ct8lv

Use ScalingFunctions to scale the axes:

https://wolfram.com/xid/0obfm-lcz5ah

Labeling and Legending (11)
Label curves with Labeled:

https://wolfram.com/xid/0obfm-xmhb5x

Place the labels relative to the curves:

https://wolfram.com/xid/0obfm-gp0udm

Label curves with PlotLabels:

https://wolfram.com/xid/0obfm-egy6il

Place the label near the curve at an value:

https://wolfram.com/xid/0obfm-oo1bdl


https://wolfram.com/xid/0obfm-dz0iw

Specify the text position relative to the point:

https://wolfram.com/xid/0obfm-wyoyes

Label curves automatically with Callout:

https://wolfram.com/xid/0obfm-iy10e3

Place a label with specific locations:

https://wolfram.com/xid/0obfm-rhk049


https://wolfram.com/xid/0obfm-b22kuh

Include legends for each curve:

https://wolfram.com/xid/0obfm-pq9bt6

Use Legended to provide a legend for a specific curve:

https://wolfram.com/xid/0obfm-y61tvi

Use Placed to change the legend location:

https://wolfram.com/xid/0obfm-cmgg34

Curves usually have interactive callouts showing the coordinates when you mouse over them:

https://wolfram.com/xid/0obfm-wniqin

Including specific wrappers or interactions such as tooltips turns off the interactive features:

https://wolfram.com/xid/0obfm-74c01s

Choose from multiple interactive highlighting effects:

https://wolfram.com/xid/0obfm-n6d7ls

Use Highlighted to emphasize specific points in a plot:

https://wolfram.com/xid/0obfm-gebg1w


https://wolfram.com/xid/0obfm-oyf3pc

Presentation (12)
Multiple curves are automatically colored to be distinct:

https://wolfram.com/xid/0obfm-bivltz

Provide explicit styling to different curves:

https://wolfram.com/xid/0obfm-bek9sp


https://wolfram.com/xid/0obfm-3ics41

Add labels for the axes and overall plot:

https://wolfram.com/xid/0obfm-jsuhnx


https://wolfram.com/xid/0obfm-p1cwhr

Label positions along a curve:

https://wolfram.com/xid/0obfm-4x6hek

Provide an interactive Tooltip for each curve:

https://wolfram.com/xid/0obfm-cy8sya


https://wolfram.com/xid/0obfm-gpp62q


https://wolfram.com/xid/0obfm-pfhf9l


https://wolfram.com/xid/0obfm-mysnz7

Style the curve segments between mesh points:

https://wolfram.com/xid/0obfm-kw8u97

Plot over an infinite domain with automatic ticks:

https://wolfram.com/xid/0obfm-eh5bpa

Show multiple curves in a row of separate panels:

https://wolfram.com/xid/0obfm-e892at

Use a column instead of a row:

https://wolfram.com/xid/0obfm-5oqxrh


https://wolfram.com/xid/0obfm-y49nmu

Options (128)Common values & functionality for each option
AspectRatio (1)
Axes (2)
AxesLabel (2)
Use labels based on variables specified in Plot:

https://wolfram.com/xid/0obfm-e9tr6p

Specify a label for each axis:

https://wolfram.com/xid/0obfm-gzj8f6

AxesOrigin (2)
AxesStyle (3)
Change the style for the axes:

https://wolfram.com/xid/0obfm-tdjuty

Specify the style of each axis:

https://wolfram.com/xid/0obfm-b1l0uc

Use different styles for the ticks and the axes:

https://wolfram.com/xid/0obfm-qzpie9

Use different styles for the labels and the axes:

https://wolfram.com/xid/0obfm-82odcp

BaselinePosition (1)
ClippingStyle (5)
Omit clipped regions of the plot:

https://wolfram.com/xid/0obfm-iyveyc

Show the clipped regions like the rest of the curve:

https://wolfram.com/xid/0obfm-mvtefu

Show clipped regions with red lines:

https://wolfram.com/xid/0obfm-9qe8ye

Show clipped regions as red at the bottom and thick at the top:

https://wolfram.com/xid/0obfm-wzkpei

Show clipped regions as red and thick:

https://wolfram.com/xid/0obfm-1gumdg

ColorFunction (5)
Color by a scaled coordinate and scaled
coordinate, respectively:

https://wolfram.com/xid/0obfm-tmw

Color with a named color scheme:

https://wolfram.com/xid/0obfm-n3g70b

Color a curve red when its absolute coordinate is above 0:

https://wolfram.com/xid/0obfm-c79

Fill with the color used for the curve:

https://wolfram.com/xid/0obfm-lwp

ColorFunction has higher priority than PlotStyle for coloring the curve:

https://wolfram.com/xid/0obfm-p0uon

ColorFunctionScaling (3)
No argument scaling on the left; automatic scaling on the right:

https://wolfram.com/xid/0obfm-xgnv2

Color a curve red when its absolute coordinate is above 0:

https://wolfram.com/xid/0obfm-hoh

Use hue to indicate direction and brightness to indicate amplitude:

https://wolfram.com/xid/0obfm-dfqryu

Epilog (2)
EvaluationMonitor (3)
Find the list of values sampled by Plot:

https://wolfram.com/xid/0obfm-r8z

Show where Plot evaluates Sin[x]:

https://wolfram.com/xid/0obfm-op6

https://wolfram.com/xid/0obfm-ph0

Count how many times the function is evaluated:

https://wolfram.com/xid/0obfm-2r8tzl

Exclusions (7)
Use automatic methods for computing exclusions, in this case for a piecewise function:

https://wolfram.com/xid/0obfm-bbqkr3

In this case, the exclusion comes from a branch cut discontinuity:

https://wolfram.com/xid/0obfm-casv1a

Indicate that no exclusions should be computed:

https://wolfram.com/xid/0obfm-bonqau

Exclude a fixed set of points:

https://wolfram.com/xid/0obfm-pa91br

Give a set of exclusions as an equation:

https://wolfram.com/xid/0obfm-jabkmp

This gives two sets of exclusions:

https://wolfram.com/xid/0obfm-ieaj0o

Exclude an equation and the automatically chosen points:

https://wolfram.com/xid/0obfm-uycxy4

ExclusionsStyle (2)
Filling (7)
Use symbolic or explicit values:

https://wolfram.com/xid/0obfm-tomir

By default, overlapping fills combine using opacity:

https://wolfram.com/xid/0obfm-b8

Fill between curve 1 and the axis:

https://wolfram.com/xid/0obfm-ud5


https://wolfram.com/xid/0obfm-i7e

Fill between curves 1 and 2 with a specific style:

https://wolfram.com/xid/0obfm-mj3

Fill between curves 1 and with yellow:

https://wolfram.com/xid/0obfm-hbvqf

Fill between curves 1 and 2; use yellow when 1 is below 2 and green when 1 is above 2:

https://wolfram.com/xid/0obfm-00qcc0

FillingStyle (4)

https://wolfram.com/xid/0obfm-jxi


https://wolfram.com/xid/0obfm-enq

Fill with red below the axis and blue above:

https://wolfram.com/xid/0obfm-yuyy95

Use a variable filling style obtained from a ColorFunction:

https://wolfram.com/xid/0obfm-x70

ImageSize (6)
Use named sizes such as Tiny, Small, Medium and Large:

https://wolfram.com/xid/0obfm-htcodh

Specify the width of the plot:

https://wolfram.com/xid/0obfm-galbc0

Specify the height of the plot:

https://wolfram.com/xid/0obfm-hm27vs

Allow the width and height to be up to a certain size:

https://wolfram.com/xid/0obfm-c78naz

Specify the width and height for a graphic, padding with space if necessary:

https://wolfram.com/xid/0obfm-f55z93

Setting AspectRatioFull will fill the available space:

https://wolfram.com/xid/0obfm-f9jvoy

Use ImageSizeFull to fill the available space in an object:

https://wolfram.com/xid/0obfm-oaqja

Specify the image size as a fraction of the available space:

https://wolfram.com/xid/0obfm-jtpghh

LabelingSize (3)
Textual labels are shown at their actual sizes:

https://wolfram.com/xid/0obfm-rshufl

Image labels are automatically resized:

https://wolfram.com/xid/0obfm-pt34ll

Specify a maximum size for textual labels:

https://wolfram.com/xid/0obfm-bz8jld

Specify a maximum size for image labels:

https://wolfram.com/xid/0obfm-hy9uc7

MaxRecursion (2)

https://wolfram.com/xid/0obfm-nlb

Each level of MaxRecursion will subdivide the initial mesh into a finer mesh:

https://wolfram.com/xid/0obfm-dgkh6a

Mesh (3)
Show the initial and final sampling meshes:

https://wolfram.com/xid/0obfm-xk1

Use 20 mesh levels evenly spaced in the direction:

https://wolfram.com/xid/0obfm-wxp

Use an explicit list of values for the mesh in the direction:

https://wolfram.com/xid/0obfm-311kt

MeshFunctions (2)
MeshShading (6)
Alternate red and blue segments of equal width in the direction:

https://wolfram.com/xid/0obfm-yc8oqy

Use None to remove segments:

https://wolfram.com/xid/0obfm-mjgfbz

MeshShading can be used with PlotStyle:

https://wolfram.com/xid/0obfm-pe00z8

MeshShading has higher priority than PlotStyle for styling the curve:

https://wolfram.com/xid/0obfm-ca0tns

Use PlotStyle for some segments by setting MeshShading to Automatic:

https://wolfram.com/xid/0obfm-6g41xt

MeshShading can be used with ColorFunction:

https://wolfram.com/xid/0obfm-51n92o

MeshStyle (4)
Color the mesh the same color as the plot:

https://wolfram.com/xid/0obfm-dkxjtw

Use a red mesh in the direction:

https://wolfram.com/xid/0obfm-wh9fnt

Use a red mesh in the direction and a blue mesh in the
direction:

https://wolfram.com/xid/0obfm-wacsek

Use big, red mesh points in the direction:

https://wolfram.com/xid/0obfm-7eelpy

PerformanceGoal (2)
PlotHighlighting (9)
Plots have interactive coordinate callouts with the default setting PlotHighlightingAutomatic:

https://wolfram.com/xid/0obfm-zcloq6

Use PlotHighlightingNone to disable the highlighting for the entire plot:

https://wolfram.com/xid/0obfm-hdxegl

Use Highlighted[…,None] to disable highlighting for a single curve:

https://wolfram.com/xid/0obfm-vb77yr

Move the mouse over a curve to highlight it using arbitrary graphics directives:

https://wolfram.com/xid/0obfm-v64mub

Move the mouse over the curve to highlight it with a ball and label:

https://wolfram.com/xid/0obfm-t99ecb

Use a ball and label to highlight a specific point on the curve:

https://wolfram.com/xid/0obfm-9cvq1c

Move the mouse over the curve to highlight it with a label and droplines to the axes:

https://wolfram.com/xid/0obfm-49wws3

Use a ball and label to highlight a specific point on the curve:

https://wolfram.com/xid/0obfm-oqerkx

Move the mouse over the plot to highlight it with a slice showing values corresponding to the
position:

https://wolfram.com/xid/0obfm-z1w61d

Highlight the curves at a fixed value:

https://wolfram.com/xid/0obfm-1b7j58

Move the mouse over the plot to highlight it with a slice showing values corresponding to the
position:

https://wolfram.com/xid/0obfm-8y50v1

Highlight the curves at a fixed value:

https://wolfram.com/xid/0obfm-gep6pt

Use a component that shows the points on the curve closest to the position of the mouse cursor:

https://wolfram.com/xid/0obfm-p5qdrx

Specify the style for the points:

https://wolfram.com/xid/0obfm-kglsv8

Use a component that shows the coordinates on the curve closest to the mouse cursor:

https://wolfram.com/xid/0obfm-svxh4h

Use Callout options to change the appearance of the label:

https://wolfram.com/xid/0obfm-ijp4dk

Combine components to create a custom effect:

https://wolfram.com/xid/0obfm-z1fu3y

PlotLabel (1)
PlotLabels (5)

https://wolfram.com/xid/0obfm-g5bmk1

Place the labels above the curves:

https://wolfram.com/xid/0obfm-bxi6p8

Place the labels differently for each curve:

https://wolfram.com/xid/0obfm-4tgrla

PlotLabels->"Expressions" uses functions as curve labels:

https://wolfram.com/xid/0obfm-wchca1

Use callouts to identify the curves:

https://wolfram.com/xid/0obfm-xz5nuv

Use None to not add a label:

https://wolfram.com/xid/0obfm-hoxc0y

PlotLayout (2)
Place each curve in a separate panel using shared axes:

https://wolfram.com/xid/0obfm-eqh5oz

Use a row instead of a column:

https://wolfram.com/xid/0obfm-bvd74c


https://wolfram.com/xid/0obfm-d9abj7


https://wolfram.com/xid/0obfm-dxn29i

PlotLegends (7)
No legends are used by default:

https://wolfram.com/xid/0obfm-3dpz8f

Create a legend based on the functions:

https://wolfram.com/xid/0obfm-b92q2s

Create a legend with placeholder text:

https://wolfram.com/xid/0obfm-dpcccy

Create a legend with specific labels:

https://wolfram.com/xid/0obfm-4prxi1

PlotLegends picks up PlotStyle values automatically:

https://wolfram.com/xid/0obfm-dyene3

Use Placed to position legends:

https://wolfram.com/xid/0obfm-50sf9j


https://wolfram.com/xid/0obfm-5p9xdc

Use LineLegend to modify the appearance of the legend:

https://wolfram.com/xid/0obfm-pqugn5

PlotPoints (1)
PlotRange (3)
PlotRangeClipping (2)
PlotStyle (6)
Use different style directives:

https://wolfram.com/xid/0obfm-zvlxc

By default, different styles are chosen for multiple curves:

https://wolfram.com/xid/0obfm-drfjib

Explicitly specify the style for different curves:

https://wolfram.com/xid/0obfm-eqf

PlotStyle can be combined with ColorFunction:

https://wolfram.com/xid/0obfm-rjb3ix

PlotStyle can be combined with MeshShading:

https://wolfram.com/xid/0obfm-o1bmr5

MeshStyle by default uses the same style as PlotStyle:

https://wolfram.com/xid/0obfm-0b39nk

PlotTheme (2)
RegionFunction (2)
ScalingFunctions (9)
By default, plots have linear scales in each direction:

https://wolfram.com/xid/0obfm-s1th8c

Use a log scale in the direction:

https://wolfram.com/xid/0obfm-yuq0eb

Use a linear scale in the direction that shows smaller numbers at the top:

https://wolfram.com/xid/0obfm-8ukzpu

Use a reciprocal scale in the direction:

https://wolfram.com/xid/0obfm-3hsf4h

Use different scales in the and
directions:

https://wolfram.com/xid/0obfm-kb70jn

Reverse the axis without changing the
axis:

https://wolfram.com/xid/0obfm-9fbjwx

Use a scale defined by a function and its inverse:

https://wolfram.com/xid/0obfm-la5w7q

Positions in Ticks and GridLines are automatically scaled:

https://wolfram.com/xid/0obfm-m8z0wd

PlotRange and AxesOrigin are automatically scaled:

https://wolfram.com/xid/0obfm-gycwmk

Applications (19)Sample problems that can be solved with this function
Basic Applications (3)
Highlighting Discrete Function Features (8)
Curves are broken where a function has singularities:

https://wolfram.com/xid/0obfm-vu6i1

Emphasize the singularities by specifying ExclusionsStyle:

https://wolfram.com/xid/0obfm-yr0fv

Highlight the discontinuities in a function using ExclusionsStyle:

https://wolfram.com/xid/0obfm-hd04mo

The discontinuities are automatically derived but can also be specified:

https://wolfram.com/xid/0obfm-bomtea

Highlight zeros of a function :

https://wolfram.com/xid/0obfm-eh75nz

The second argument passed to MeshFunctions is :

https://wolfram.com/xid/0obfm-myc19h

Highlight local extrema for a function using MeshFunctions:

https://wolfram.com/xid/0obfm-i7cm3n


https://wolfram.com/xid/0obfm-bwsvuc

https://wolfram.com/xid/0obfm-h0i2g4

Highlight the local maximums and minimums of a function :

https://wolfram.com/xid/0obfm-cpbvox

https://wolfram.com/xid/0obfm-ei4r63

The local maximums are the points where and
:

https://wolfram.com/xid/0obfm-c8656

Similarly the local minimums are given by and
:

https://wolfram.com/xid/0obfm-cme84k

Highlight the non-negative and non-positive parts of a function :

https://wolfram.com/xid/0obfm-dt9c3a

https://wolfram.com/xid/0obfm-7jsla

Using the Filling specification allows this to be readily achieved:

https://wolfram.com/xid/0obfm-6y37c

Highlight the segments where the function is increasing or decreasing:

https://wolfram.com/xid/0obfm-c7i67c

https://wolfram.com/xid/0obfm-cj5tnx

A function is increasing when :

https://wolfram.com/xid/0obfm-cosgwi

https://wolfram.com/xid/0obfm-f71o4l

A function is decreasing when :

https://wolfram.com/xid/0obfm-pncd9

https://wolfram.com/xid/0obfm-bsgo30

Show them together and add a legend:

https://wolfram.com/xid/0obfm-ezu32u

Highlight the parts where a function is convex or concave:

https://wolfram.com/xid/0obfm-eb6rm3

https://wolfram.com/xid/0obfm-591jo


https://wolfram.com/xid/0obfm-lz7k06

https://wolfram.com/xid/0obfm-bp04gv


https://wolfram.com/xid/0obfm-fjfr48

https://wolfram.com/xid/0obfm-fb7p0c

Show them together with a legend:

https://wolfram.com/xid/0obfm-f2q2qb

Highlighting Continuous Function Features (1)
Use color to overlay the derivative of function on top of the curve for
:

https://wolfram.com/xid/0obfm-hw8zox

https://wolfram.com/xid/0obfm-hautil

By rescaling the derivative to be between 0 and 1, you can easily map to a color:

https://wolfram.com/xid/0obfm-wrh26

https://wolfram.com/xid/0obfm-bwqvd7


https://wolfram.com/xid/0obfm-c6931l

From ColorData you can get a variety of color scales:

https://wolfram.com/xid/0obfm-bfsjqi


https://wolfram.com/xid/0obfm-3wgcy
The derivative can now be overlaid as color on top of the curve using ColorFunction:

https://wolfram.com/xid/0obfm-o45c5o

Using Filling emphasizes the color more:

https://wolfram.com/xid/0obfm-hkcuz5

Epigraph and Hypograph of a Function (2)
Complex-Valued Functions (3)
Plot the real and imaginary parts of a complex-valued function of a real variable:

https://wolfram.com/xid/0obfm-g97c0m

Plot the magnitude and phase of a complex-valued function of a real variable:

https://wolfram.com/xid/0obfm-ojxrd

Plot the magnitude and color based on the phase of the function:

https://wolfram.com/xid/0obfm-tje2r


https://wolfram.com/xid/0obfm-fbyk88

Add filling and a color legend that provides a separate axis for the phase:

https://wolfram.com/xid/0obfm-kqh7n4

Equation Solutions (2)
The general solution to a differential equation:

https://wolfram.com/xid/0obfm-dg4q44

Plot two particular solutions:

https://wolfram.com/xid/0obfm-hmohs


https://wolfram.com/xid/0obfm-l1cpha

The general solution to an algebraic equation:

https://wolfram.com/xid/0obfm-b4mlqk


https://wolfram.com/xid/0obfm-fx0mkd

Properties & Relations (9)Properties of the function, and connections to other functions
Plot samples more points where it needs to:

https://wolfram.com/xid/0obfm-dy

Plot is a special case of ParametricPlot for curves:

https://wolfram.com/xid/0obfm-uaq6r

Use ParametricPlot for parametric curves and regions:

https://wolfram.com/xid/0obfm-jid3us

Use ContourPlot and RegionPlot for implicit curves and regions:

https://wolfram.com/xid/0obfm-80rjm

Use LogPlot, LogLinearPlot, and LogLogPlot for logarithmic plots:

https://wolfram.com/xid/0obfm-o4ap4

Use ListPlot and ListLinePlot for data:

https://wolfram.com/xid/0obfm-nb3ju9

AbsArgPlot is a special case of Plot:

https://wolfram.com/xid/0obfm-k6ugh

ReImPlot is a special case of Plot:

https://wolfram.com/xid/0obfm-bbiuct

Use Plot3D and ParametricPlot3D for function and parametric surfaces:

https://wolfram.com/xid/0obfm-ou3yn


https://wolfram.com/xid/0obfm-lxrrkw

Wolfram Research (1988), Plot, Wolfram Language function, https://reference.wolfram.com/language/ref/Plot.html (updated 2023).
Text
Wolfram Research (1988), Plot, Wolfram Language function, https://reference.wolfram.com/language/ref/Plot.html (updated 2023).
Wolfram Research (1988), Plot, Wolfram Language function, https://reference.wolfram.com/language/ref/Plot.html (updated 2023).
CMS
Wolfram Language. 1988. "Plot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/Plot.html.
Wolfram Language. 1988. "Plot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/Plot.html.
APA
Wolfram Language. (1988). Plot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Plot.html
Wolfram Language. (1988). Plot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Plot.html
BibTeX
@misc{reference.wolfram_2025_plot, author="Wolfram Research", title="{Plot}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/Plot.html}", note=[Accessed: 26-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_plot, organization={Wolfram Research}, title={Plot}, year={2023}, url={https://reference.wolfram.com/language/ref/Plot.html}, note=[Accessed: 26-April-2025
]}