From f27432adf7096e913b56f0c4076ec7e35c3c8199 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 16 Apr 2018 19:33:43 -0700 Subject: [PATCH] Backport PR #11064: Minor docstring format cleanup --- lib/matplotlib/artist.py | 14 +++++++------- lib/matplotlib/backend_bases.py | 14 +++++++------- lib/matplotlib/backend_managers.py | 10 +++++----- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index 2cf785236f50..b7ff02804933 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -549,17 +549,17 @@ def get_sketch_params(self): ------- sketch_params : tuple or `None` - A 3-tuple with the following elements: + A 3-tuple with the following elements: - * `scale`: The amplitude of the wiggle perpendicular to the - source line. + * `scale`: The amplitude of the wiggle perpendicular to the + source line. - * `length`: The length of the wiggle along the line. + * `length`: The length of the wiggle along the line. - * `randomness`: The scale factor by which the length is - shrunken or expanded. + * `randomness`: The scale factor by which the length is + shrunken or expanded. - May return `None` if no sketch parameters were set. + May return `None` if no sketch parameters were set. """ return self._sketch diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 136f567ebcd7..9a20ce1b12dd 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1189,17 +1189,17 @@ def get_sketch_params(self): ------- sketch_params : tuple or `None` - A 3-tuple with the following elements: + A 3-tuple with the following elements: - * `scale`: The amplitude of the wiggle perpendicular to the - source line. + * `scale`: The amplitude of the wiggle perpendicular to the + source line. - * `length`: The length of the wiggle along the line. + * `length`: The length of the wiggle along the line. - * `randomness`: The scale factor by which the length is - shrunken or expanded. + * `randomness`: The scale factor by which the length is + shrunken or expanded. - May return `None` if no sketch parameters were set. + May return `None` if no sketch parameters were set. """ return self._sketch diff --git a/lib/matplotlib/backend_managers.py b/lib/matplotlib/backend_managers.py index ab9a503fab88..b03058928a9e 100644 --- a/lib/matplotlib/backend_managers.py +++ b/lib/matplotlib/backend_managers.py @@ -45,7 +45,7 @@ def __init__(self, name, sender, message): class ToolManager(object): """ - Helper class that groups all the user interactions for a Figure + Helper class that groups all the user interactions for a Figure. Attributes ---------- @@ -93,12 +93,12 @@ def figure(self, figure): def set_figure(self, figure, update_tools=True): """ - Sets the figure to interact with the tools + Bind the given figure to the tools. Parameters - ========== - figure: `Figure` - update_tools: bool + ---------- + figure : `.Figure` + update_tools : bool Force tools to update figure """ if self._key_press_handler_id: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy