From d6270b1ec462118f8181f98442a985d5e0a99a24 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 28 Oct 2024 23:05:33 -0400 Subject: [PATCH] Backport PR #29031: DOC: Fix copy-paste typo in ColorSequenceRegistry --- lib/matplotlib/colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py index 5f40e7b0fb9a..2c0d1b5d9a4f 100644 --- a/lib/matplotlib/colors.py +++ b/lib/matplotlib/colors.py @@ -105,7 +105,7 @@ class ColorSequenceRegistry(Mapping): Read access uses a dict-like interface mapping names to lists of colors:: import matplotlib as mpl - cmap = mpl.color_sequences['tab10'] + colors = mpl.color_sequences['tab10'] The returned lists are copies, so that their modification does not change the global definition of the color sequence. 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