From 43ed57a1ae0b67192ca34273ca7fd56b8423cfb9 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 25 Dec 2018 16:40:24 +0100 Subject: [PATCH] Fix section names for numpydoc --- lib/matplotlib/axes/_axes.py | 4 ++-- lib/matplotlib/backend_bases.py | 4 ++-- lib/matplotlib/testing/decorators.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index a90d92f6c482..b8912d2e9d69 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3982,8 +3982,8 @@ def _parse_scatter_color_args(c, edgecolors, kwargs, xshape, yshape, - kwargs['color'] (==kwcolor) - 'face' if not in classic mode else None - Arguments - --------- + Parameters + ---------- c : color or sequence or sequence of color or None See argument description of `.Axes.scatter`. edgecolors : color or sequence of color or {'face', 'none'} or None diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index aa07b81687ff..77300014f8bc 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1853,8 +1853,8 @@ def draw_idle(self, *args, **kwargs): Even if multiple calls to `draw_idle` occur before control returns to the GUI event loop, the figure will only be rendered once. - Note - ---- + Notes + ----- Backends may choose to override the method and implement their own strategy to prevent multiple renderings. diff --git a/lib/matplotlib/testing/decorators.py b/lib/matplotlib/testing/decorators.py index 548a4b54909b..04d5bcda89b7 100644 --- a/lib/matplotlib/testing/decorators.py +++ b/lib/matplotlib/testing/decorators.py @@ -351,8 +351,8 @@ def image_comparison(baseline_images, extensions=None, tol=0, *baseline_images*, which must correspond, else an `ImageComparisonFailure` exception will be raised. - Arguments - --------- + Parameters + ---------- baseline_images : list or None A list of strings specifying the names of the images generated by calls to :meth:`matplotlib.figure.savefig`. @@ -429,8 +429,8 @@ def check_figures_equal(*, extensions=("png", "pdf", "svg"), tol=0): This decorator should be preferred over `image_comparison` when possible in order to keep the size of the test suite from ballooning. - Arguments - --------- + Parameters + ---------- extensions : list, default: ["png", "pdf", "svg"] The extensions to test. tol : float