October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots six tie objects; the last two are repeats of the first two. It repeats the cycle after every four objects in this example:
fig = Figure()FigureCanvas(fig)
fig.set(facecolor='grey', alpha=0.2, edgecolor='m')ax = fig.add_subplot(111)
x = np.array([0.2, 0.4, 0.6, 0.8, 0.5])y = [1, 6, 6, 1, 0]
custom_cycler = cycler('color', ['g', 'blue', 'y', 'c']) + \ cycler('hatch', ['+*', 'xx', '+x', '+O.'])ax.set_prop_cycle(custom_cycler)
Read now
Unlock full access