October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots a collection of polygons that cycle through a given number of sizes and a given list of colors:
nsizes = 50 #number of different sizes to be used to plot the items in the collectionnpts = 100 # number of items in the collectionr = np.arange(nsizes)theta = np.linspace(0, 2*np.pi, nsizes)xx = r * np.sin(theta)
rs = np.random.RandomState([125])xo = rs.randn(npts)yo = rs.randn(npts)xyo = list(zip(xo, yo))
figure_manager = backend_agg.new_figure_manager(1, figsize=(8,6))fig = ...
Read now
Unlock full access