From 8006222492d6e9678a58deea0bc83232b3356fc8 Mon Sep 17 00:00:00 2001 From: Sahil Mathur Date: Fri, 17 Jul 2026 00:28:39 +0530 Subject: [PATCH 1/2] DOC: clarify source of Cn colors --- galleries/users_explain/colors/colors.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/galleries/users_explain/colors/colors.py b/galleries/users_explain/colors/colors.py index 97a281bf1977..d671cb3a84a6 100644 --- a/galleries/users_explain/colors/colors.py +++ b/galleries/users_explain/colors/colors.py @@ -63,7 +63,12 @@ | precedes a number acting as an index | - ``'C1'`` | | into the default property cycle. +--------------------------------------+ | | :rc:`axes.prop_cycle` | -| .. note:: Matplotlib indexes color | | +| .. note:: The cycle comes from the | | +| global | | +| :rc:`axes.prop_cycle`, not | | +| an Axes-local cycle set by | | +| `~.Axes.set_prop_cycle`. | | +| Matplotlib indexes color | | | at draw time and defaults | | | to black if cycle does not | | | include color. | | From e8e1092cca7969b479eb498ff162c4a939a542ec Mon Sep 17 00:00:00 2001 From: Sahil Mathur Date: Sun, 19 Jul 2026 12:10:47 +0530 Subject: [PATCH 2/2] DOC: clarify source of Cn colors --- galleries/users_explain/colors/colors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/galleries/users_explain/colors/colors.py b/galleries/users_explain/colors/colors.py index d671cb3a84a6..1c3932f3333f 100644 --- a/galleries/users_explain/colors/colors.py +++ b/galleries/users_explain/colors/colors.py @@ -61,8 +61,9 @@ +--------------------------------------+--------------------------------------+ | "CN" color spec where ``'C'`` | - ``'C0'`` | | precedes a number acting as an index | - ``'C1'`` | -| into the default property cycle. +--------------------------------------+ -| | :rc:`axes.prop_cycle` | +| into the default property cycle | | +| (:rc:`axes.prop_cycle`). | | +| | | | .. note:: The cycle comes from the | | | global | | | :rc:`axes.prop_cycle`, not | |