Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a10ad9

Browse files
authored
Merge pull request #24463 from meeseeksmachine/auto-backport-of-pr-24459-on-v3.6.x
Backport PR #24459 on branch v3.6.x (removed unused variable and fixed text in doc)
2 parents 513b0fc + dcbab5b commit 8a10ad9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/text_labels_and_annotations/legend_demo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
plt.show()
117117

118118
###############################################################################
119-
# Finally, it is also possible to write custom objects that define
119+
# Finally, it is also possible to write custom classes that define
120120
# how to stylize legends.
121121

122122

@@ -166,7 +166,6 @@ def create_artists(self, legend, orig_handle,
166166
fig, ax = plt.subplots()
167167
colors = plt.rcParams['axes.prop_cycle'].by_key()['color'][:5]
168168
styles = ['solid', 'dashed', 'dashed', 'dashed', 'solid']
169-
lines = []
170169
for i, color, style in zip(range(5), colors, styles):
171170
ax.plot(x, np.sin(x) - .1 * i, c=color, ls=style)
172171

0 commit comments

Comments
 (0)