Skip to content

Commit 681b78a

Browse files
committed
Fix some links in Part 5, and a bare zip() in a solution
1 parent 7fc0e25 commit 681b78a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AnatomyOfMatplotlib-Part5-Artists.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"cell_type": "markdown",
162162
"metadata": {},
163163
"source": [
164-
"To see what properties are set for an artist, use [`getp()`](http://matplotlib.org/api/artist_api.html#matplotlib.artist.getp)"
164+
"To see what properties are set for an artist, use [`getp()`](https://matplotlib.org/api/artist_api.html#functions)"
165165
]
166166
},
167167
{
@@ -182,7 +182,7 @@
182182
"metadata": {},
183183
"source": [
184184
"# Collections\n",
185-
"In addition to the Figure and Axes containers, there is another special type of container called a [`Collection`](http://matplotlib.org/api/collections_api.html). A Collection usually contains a list of primitives of the same kind that should all be treated similiarly. For example, a [`CircleCollection`](http://matplotlib.org/api/collections_api.html#matplotlib.collections.CircleCollection) would have a list of [`Circle`](http://matplotlib.org/api/artist_api.html#matplotlib.patches.Circle) objects all with the same color, size, and edge width. Individual property values for artists in the collection can also be set (in some cases)."
185+
"In addition to the Figure and Axes containers, there is another special type of container called a [`Collection`](http://matplotlib.org/api/collections_api.html). A Collection usually contains a list of primitives of the same kind that should all be treated similiarly. For example, a [`CircleCollection`](http://matplotlib.org/api/collections_api.html#matplotlib.collections.CircleCollection) would have a list of [`Circle`](https://matplotlib.org/api/_as_gen/matplotlib.patches.Circle.html) objects all with the same color, size, and edge width. Individual property values for artists in the collection can also be set (in some cases)."
186186
]
187187
},
188188
{

solutions/5.1-goldstar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
fig, ax = plt.subplots(1, 1)
55

6-
offsets = zip([0.2, 0.4, 0.6, 0.8], [0.5] * 4)
6+
offsets = list(zip([0.2, 0.4, 0.6, 0.8], [0.5] * 4))
77
collection = StarPolygonCollection(5,
88
offsets=offsets,
99
transOffset=ax.transData,

0 commit comments

Comments
 (0)