WOLFRAM

ReImPlot[f,{x,xmin,xmax}]

generates a plot of Re[f] and Im[f] as functions of x from xmin to xmax.

ReImPlot[{f1,f2,},{x,xmin,xmax}]

plots several functions.

ReImPlot[{,w[fi],},]

plots fi with features defined by the symbolic wrapper w.

ReImPlot[,{x}reg]

takes the variable x to be in the geometric region reg.

Details and Options

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Plot the real and imaginary parts of a complex-valued function of a real variable:

Out[1]=1

Plot several functions:

Out[1]=1

Label each curve:

Out[1]=1

Scope  (23)Survey of the scope of standard use cases

Sampling  (9)

More points are sampled where the function changes quickly:

Out[1]=1

The plot range is selected automatically:

Out[1]=1

Use PlotRange to focus in on areas of interest:

Out[1]=1

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

Out[1]=1

Use ExclusionsNone to draw connected curves:

Out[1]=1

Use PlotPoints and MaxRecursion to control adaptive sampling:

Out[1]=1

The domain can be specified by a region:

Out[2]=2

Specify a domain using a MeshRegion:

Out[2]=2

Plot over an infinite domain:

Out[1]=1

Labeling and Legending  (8)

There are two standard legends:

Out[1]=1

Show the legends together:

Out[1]=1

Use legends with combined styles:

Out[1]=1

Explicitly label the individual curves:

Out[1]=1

Identify curves with wrappers:

Out[1]=1

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

Out[1]=1

Choose from multiple interactive highlighting effects:

Out[1]=1

Use Highlighted to emphasize specific points in a plot:

Out[1]=1

Highlight multiple points:

Out[2]=2

Presentation  (6)

Multiple pairs of curves are automatically colored to be distinct:

Out[1]=1

Provide explicit styling to different curves:

Out[1]=1

Add labels and a legend:

Out[1]=1

Create filled plots:

Out[1]=1

Use a plot theme:

Out[1]=1

Use ScalingFunctions to scale the axes:

Out[1]=1

Options  (65)Common values & functionality for each option

ClippingStyle  (2)

Omit clipped regions of the plot:

Out[1]=1

Show clipped regions with red lines:

Out[1]=1

ColorFunction  (4)

Color by a scaled coordinate and scaled coordinate, respectively:

Out[1]=1

Use a named color gradient:

Out[1]=1

ColorFunction has higher priority than PlotStyle:

Out[1]=1

Highlight part of the plot:

Out[1]=1

ColorFunctionScaling  (1)

No argument scaling on the left; automatic scaling on the right:

Out[1]=1

Exclusions  (2)

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

Out[1]=1

Indicate that no exclusions should be computed:

Out[1]=1

ExclusionStyle  (1)

Use red lines to connect portions of the curve and black points to indicate exclusions:

Out[1]=1

Filling  (4)

Use symbolic or explicit values:

Out[1]=1

Fill between curve 1 and the axis:

Out[1]=1

Fill between curves 1 and 2:

Out[1]=1

Fill between the real and imaginary parts of each function:

Out[1]=1

FillingStyle  (3)

Use different fill colors:

Out[1]=1

Fill with red below the axis and blue above:

Out[1]=1

Use a variable filling style obtained from a ColorFunction:

Out[1]=1

MaxRecursion  (1)

Each level of MaxRecursion adaptively subdivides the initial mesh into a finer mesh:

Out[1]=1

Mesh  (3)

Show the initial and final sampling meshes:

Out[1]=1

Use 10 mesh points evenly spaced in the direction:

Out[1]=1

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

Out[1]=1

MeshFunctions  (2)

Use a mesh evenly spaced in the and directions:

Out[1]=1

Show seven mesh levels in the direction (red) and 15 in the direction (blue):

Out[1]=1

MeshShading  (3)

Alternate red and blue arcs in the direction:

Out[1]=1

MeshShading has higher priority than PlotStyle for styling:

Out[1]=1

Use PlotStyle for some segments by setting MeshShading to Automatic:

Out[1]=1

MeshStyle  (2)

Use a red mesh in the direction:

Out[1]=1

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

Out[1]=1

PerformanceGoal  (2)

Generate a higher-quality plot:

Out[2]=2

Emphasize performance, possibly at the cost of quality:

Out[1]=1

PlotHighlighting  (8)

Plots have interactive coordinate callouts with the default setting PlotHighlightingAutomatic:

Out[11]=11

Use PlotHighlightingNone to disable the highlighting for the entire plot:

Out[12]=12

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

Out[16]=16

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

Out[1]=1

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

Out[2]=2

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

Out[1]=1

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

Out[2]=2

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

Out[1]=1

Highlight the curves at a fixed value:

Out[2]=2

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

Out[1]=1

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

Out[1]=1

Specify the style for the points:

Out[2]=2

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

Out[1]=1

Use Callout options to change the appearance of the label:

Out[2]=2

Combine components to create a custom effect:

Out[1]=1

PlotLabel  (1)

Add an overall label to the plot:

Out[1]=1

PlotLabels  (6)

Specify text to label curves:

Out[1]=1

Modify the appearance of the labels:

Out[1]=1

Place the labels differently for each curve:

Out[1]=1

PlotLabels"Expressions" uses functions as curve labels:

Out[1]=1

Use callouts to identify the curves:

Out[1]=1

Use None to not add a label:

Out[1]=1

PlotLegends  (7)

Create a legend based on the functions:

Out[1]=1

Use "ReIm" to distinguish between the real and imaginary parts of the function:

Out[1]=1

Use "ReImExpressions" to show both:

Out[1]=1

Use a legend showing all the style combinations:

Out[1]=1

Make two different legends:

Out[1]=1

Modify the legend labels:

Out[1]=1

Generate a third legend:

Out[1]=1

PlotPoints  (1)

Use more initial points to get smoother curves:

Out[1]=1

PlotRange  (1)

The plot range is selected automatically:

Out[2]=2

Focus on a specified range of values:

Out[3]=3

PlotStyle  (3)

Explicitly specify the style for different curves and regions:

Out[1]=1

ReImStyle takes precedence over PlotStyle:

Out[1]=1

Combine with ReImStyle:

Out[1]=1

PlotTheme  (3)

Use a theme with bright colors:

Out[1]=1

Add a theme with a legend:

Out[1]=1

Change plot styles:

Out[1]=1

RegionFunction  (1)

Show the curve where :

Out[1]=1

ReImLabels  (2)

Modify the labels for the real and imaginary parts of a function using predetermined option values:

Out[1]=1

Specify custom labels for the real and imaginary parts of a function:

Out[1]=1

ReImStyle  (2)

By default, the real and imaginary parts are solid and dashed, respectively:

Out[1]=1

Modify the real and imaginary styles:

Out[1]=1

Applications  (7)Sample problems that can be solved with this function

Plot Fourier transforms:

Out[2]=2

Plot the solution of a complex differential equation with initial conditions:

Out[2]=2

Plot the eigenvalues of a matrix as a function of a parameter:

Out[1]=1

Plot solutions of an equation as a function of a parameter:

Out[1]=1

Graph special functions:

Out[1]=1

Plot fractional derivatives of :

Out[1]=1

Plot the complex solution of the Schrödinger equation for a particle in a box:

Out[1]=1

Properties & Relations  (8)Properties of the function, and connections to other functions

ReImPlot is a special case of Plot:

Out[1]=1

Use AbsArgPlot to plot the magnitude and argument over the real numbers:

Out[1]=1

ComplexPlot shows the argument and magnitude of a function using color:

Out[1]=1

Use ComplexPlot3D to use the z axis for the magnitude:

Out[1]=1

Use ComplexListPlot to show the location of complex numbers in the plane:

Out[1]=1

ComplexContourPlot plots curves over the complexes:

Out[1]=1

ComplexRegionPlot plots regions over the complexes:

Out[1]=1

ComplexStreamPlot and ComplexVectorPlot treat complex numbers as directions:

Out[1]=1
Out[2]=2

Possible Issues  (1)Common pitfalls and unexpected behavior

ScalingFunctions applies to the real and imaginary parts:

Out[1]=1
Wolfram Research (2019), ReImPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/ReImPlot.html (updated 2023).
Wolfram Research (2019), ReImPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/ReImPlot.html (updated 2023).

Text

Wolfram Research (2019), ReImPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/ReImPlot.html (updated 2023).

Wolfram Research (2019), ReImPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/ReImPlot.html (updated 2023).

CMS

Wolfram Language. 2019. "ReImPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/ReImPlot.html.

Wolfram Language. 2019. "ReImPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/ReImPlot.html.

APA

Wolfram Language. (2019). ReImPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReImPlot.html

Wolfram Language. (2019). ReImPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReImPlot.html

BibTeX

@misc{reference.wolfram_2025_reimplot, author="Wolfram Research", title="{ReImPlot}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/ReImPlot.html}", note=[Accessed: 11-July-2025 ]}

@misc{reference.wolfram_2025_reimplot, author="Wolfram Research", title="{ReImPlot}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/ReImPlot.html}", note=[Accessed: 11-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_reimplot, organization={Wolfram Research}, title={ReImPlot}, year={2023}, url={https://reference.wolfram.com/language/ref/ReImPlot.html}, note=[Accessed: 11-July-2025 ]}

@online{reference.wolfram_2025_reimplot, organization={Wolfram Research}, title={ReImPlot}, year={2023}, url={https://reference.wolfram.com/language/ref/ReImPlot.html}, note=[Accessed: 11-July-2025 ]}