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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
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