Repository: sympy/sympy
Issue category: Bug Report

Issue:
DOC: outdated information about adaptive sampling in plot() function
I have recently learned (https://github.com/mgeier/python-audio/issues/4) that SymPy doesn't use adaptive sampling by default anymore.

Therefore, this documentation is outdated:

https://github.com/sympy/sympy/blob/a7719e719c0b43ec1dbb964b01b57c4f3783be8d/sympy/plotting/plot.py#L304-L305

https://github.com/sympy/sympy/blob/a7719e719c0b43ec1dbb964b01b57c4f3783be8d/sympy/plotting/plot.py#L380-L389


Hints:

Patch:
diff --git a/sympy/plotting/plot.py b/sympy/plotting/plot.py
index 63da0440dabb..50029392a1ac 100644
--- a/sympy/plotting/plot.py
+++ b/sympy/plotting/plot.py
@@ -301,8 +301,8 @@ def plot(*args, show=True, **kwargs):
         :external:meth:`~matplotlib.axes.Axes.fill_between` method.
 
     adaptive : bool, optional
-        The default value is set to ``True``. Set adaptive to ``False``
-        and specify ``n`` if uniform sampling is required.
+        The default value for the ``adaptive`` parameter is now ``False``.
+        To enable adaptive sampling, set ``adaptive=True`` and specify ``n`` if uniform sampling is required.
 
         The plotting uses an adaptive algorithm which samples
         recursively to accurately plot. The adaptive algorithm uses a
@@ -377,14 +377,14 @@ def plot(*args, show=True, **kwargs):
        [0]: cartesian line: x**2 for x over (-6.0, 6.0)
        [1]: cartesian line: x for x over (-5.0, 5.0)
 
-    No adaptive sampling.
+    No adaptive sampling by default. If adaptive sampling is required, set ``adaptive=True``.
 
     .. plot::
        :context: close-figs
        :format: doctest
        :include-source: True
 
-       >>> plot(x**2, adaptive=False, n=400)
+       >>> plot(x**2, adaptive=True, n=400)
        Plot object containing:
        [0]: cartesian line: x**2 for x over (-10.0, 10.0)
 


Test patch: