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

Skip to content

Commit b8ec77c

Browse files
authored
Merge pull request #13743 from timhoffm/fix-doc-warning
Fix doc warning
2 parents 6f49999 + afd76e6 commit b8ec77c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/lines_bars_and_markers/stem_plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
x = np.linspace(0.1, 2 * np.pi, 41)
1313
y = np.exp(np.sin(x))
1414

15-
plt.stem(x, y)
15+
plt.stem(x, y, use_line_collection=True)
1616
plt.show()
1717

1818
#############################################################################
@@ -23,8 +23,8 @@
2323
# properties are configurable via keyword arguments. For more advanced
2424
# control adapt the line objects returned by `~.pyplot`.
2525

26-
markerline, stemlines, baseline = plt.stem(x, y, linefmt='grey', markerfmt='D',
27-
bottom=1.1)
26+
markerline, stemlines, baseline = plt.stem(
27+
x, y, linefmt='grey', markerfmt='D', bottom=1.1, use_line_collection=True)
2828
markerline.set_markerfacecolor('none')
2929
plt.show()
3030

tutorials/introductory/sample_plots.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@
414414
:scale: 50
415415
416416
xkcd
417+
417418
"""
418419

419420
###################################################################

0 commit comments

Comments
 (0)