Skip to content

Commit 703e3ae

Browse files
committed
Use inifinite props cycler instead of itertools
1 parent 492af3d commit 703e3ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/style_sheets/style_sheets_reference.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
line plot and histogram,
99
1010
"""
11-
from itertools import cycle
1211

1312
import numpy as np
1413
import matplotlib.pyplot as plt
@@ -64,7 +63,7 @@ def plot_colored_circles(ax, prng, nb_samples=15):
6463
the color cycle, because different styles may have different numbers
6564
of colors.
6665
"""
67-
for sty_dict, j in zip(cycle(plt.rcParams['axes.prop_cycle']),
66+
for sty_dict, j in zip(plt.rcParams['axes.prop_cycle'](),
6867
range(nb_samples)):
6968
ax.add_patch(plt.Circle(prng.normal(scale=3, size=2),
7069
radius=1.0, color=sty_dict['color']))

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