Skip to content

Commit caec6ad

Browse files
authored
Merge pull request #24299 from deep-jkl/cycle_styles_colored_circles
Rework style sheet reference example to cycle props
2 parents f630c28 + 9b4b0b1 commit caec6ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/style_sheets/style_sheets_reference.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def plot_colored_circles(ax, prng, nb_samples=15):
6363
the color cycle, because different styles may have different numbers
6464
of colors.
6565
"""
66-
for sty_dict, j in zip(plt.rcParams['axes.prop_cycle'], range(nb_samples)):
66+
for sty_dict, j in zip(plt.rcParams['axes.prop_cycle'](),
67+
range(nb_samples)):
6768
ax.add_patch(plt.Circle(prng.normal(scale=3, size=2),
6869
radius=1.0, color=sty_dict['color']))
6970
ax.grid(visible=True)

0 commit comments

Comments
 (0)
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