This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


Updated In 8 Graphic
makes a plot showing the region in which pred is True.
  • The predicate pred can be any logical combination of inequalities.
  • The region plotted by RegionPlot can contain disconnected parts.
  • By default, the interior of each part is shown in gray, with a black line as its boundary.
AspectRatio1ratio of height to width
BoundaryStyleAutomaticthe style for the boundary of each region
ColorFunctionAutomatichow to color the interior of each region
ColorFunctionScalingTruewhether to scale the argument to ColorFunction
EvaluationMonitorNoneexpression to evaluate at every function evaluation
FrameTruewhether to draw a frame around the plot
MaxRecursionAutomaticthe maximum number of recursive subdivisions allowed
MeshNonehow many mesh lines to draw
MeshFunctions{#1&,#2&}what mesh lines to draw
MeshShadingNonehow to shade regions between mesh lines
MeshStyleAutomaticthe style for mesh lines
MethodAutomaticthe method to use for refining regions
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
PlotPointsAutomaticinitial number of sample points
PlotRangeFullthe range of values to include in the plot
PlotRangeClippingTruewhether to clip at the plot range
PlotRangePaddingAutomatichow much to pad the range of values
PlotStyleAutomaticgraphics directives to specify the style for regions
TextureCoordinateFunctionAutomatichow to determine texture coordinates
TextureCoordinateScalingTruewhether to scale arguments to TextureCoordinateFunction
WorkingPrecisionMachinePrecisionthe precision used in internal computations
  • RegionPlot initially evaluates pred at a grid of equally spaced sample points specified by PlotPoints. Then it uses an adaptive algorithm to subdivide at most MaxRecursion times, attempting to find the boundaries of all regions in which pred is True.
  • You should realize that since it uses only a finite number of sample points, it is possible for RegionPlot to miss regions in which pred is True. To check your results, you should try increasing the settings for PlotPoints and MaxRecursion.
  • With the default setting PlotRange->Full, RegionPlot will explicitly include the full ranges to and to for x and y.
  • With Mesh->All, RegionPlot will explicitly draw mesh lines to indicate the subdivisions it used to find each region.
  • RegionPlot can in general only find regions of positive measure; it cannot find regions that are just lines or points.
Plot a region defined by an inequality:
Plot a region defined by logical combinations of inequalities:
Plot disconnected regions:
Style the region:
Plot a region defined by an inequality:
Click for copyable input
Plot a region defined by logical combinations of inequalities:
Click for copyable input
Plot disconnected regions:
Click for copyable input
Style the region:
Click for copyable input
More points are sampled where the function changes quickly:
Areas where the function is not True are excluded:
Use PlotPoints and MaxRecursion to control adaptive sampling:
Use logical combinations of regions:
Provide an explicit PlotStyle for the region:
Provide an explicit BoundaryStyle for the region boundary:
Add labels:
Use an overlay mesh:
Style the areas between mesh lines:
Color the region with an overlay density:
Regions are shown with AspectRatio set to 1:
Use the natural scale to show regions:
Regions have a gray boundary:
Use None to show regions without any boundary:
Use a blue boundary:
Use a thicker dashed boundary:
Color regions by scaled and values:
Named color functions use the scaled direction:
Color regions according to a function of and :
ColorFunction has higher priority than PlotStyle:
ColorFunction has lower priority than MeshShading:
Use unscaled and coordinates for coloring the regions:
Refine the region where it changes quickly:
Use no mesh:
Show the initial and final sampling meshes:
Use 10 mesh lines in each direction:
Use 3 mesh lines in the direction and 6 mesh lines in the direction:
Use mesh lines at specific values:
Use different styles for different mesh lines:
Mesh lines apply to the whole region, not each component:
Mesh lines in the and directions:
Mesh lines at fixed radii from the origin:
Use None to remove regions:
Lay a checkerboard pattern over a region:
MeshShading has a higher priority than PlotStyle:
MeshShading has a higher priority than ColorFunction:
Use red mesh lines:
Use red mesh lines in the direction and dashed mesh lines in the direction:
Generate a higher-quality plot:
Emphasize performance, possibly at the cost of quality:
Use more initial points to get smoother regions:
Show the region over the full , range:
Automatically compute the , range:
Regions are shown in light blue:
Use None to just show the boundary of the region:
Use light orange:
Distinct colors are used for different regions:
Use transparent colors for different regions:
Textures use scaled and coordinates by default:
Use unscaled coordinates:
Use scaled or unscaled coordinates for textures:
Find the intersection of two half-spaces:
Simple regions including a disk:
Disk annulus:
Ellipse annulus:
Disk segment:
Disk segment annulus:
Illustrate set operations:
Visualize regions in the complex plane:
Identify where a function is real-valued:
Integrate over a region that contains parameters:
Visualize the regions for the three different cases:
Absolute stability regions for Euler forward:
Stability regions for Euler backward and Tustin or midpoint rules:
Stability regions for explicit Runge-Kutta rules of order 2, 3, 4, and 5:
Relative stability or order-stars regions for Pade approximants:
Order-star regions for Pade approximants:
RegionPlot samples more points where it needs to:
Use RegionPlot3D for volumes:
Use ContourPlot and ContourPlot3D for systems of equalities:
Use RegionFunction to constrain other plots:
Use ParametricPlot for plane parametric curves and regions:
Use Integrate or NIntegrate to integrate over regions:
The integration region:
Use Maximize, NMaximize, or FindMaximum to optimize over regions:
Use Reduce to get a cylindrical representation of the region:
Use FindInstance to find specific samples in regions:
RegionPlot will only visualize two-dimensional regions:
Use ContourPlot to visualize one-dimensional regions:
Piecewise constant functions can have two-dimensional level sets:
Overlay colors on a transcendental region:
Exclusive OR of five disks:
New in 6 | Last modified in 8