From afd76e6bb45e464e1c099953ef944f3621530a5c Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 23 Mar 2019 12:01:44 +0100 Subject: [PATCH] Fix doc warning --- examples/lines_bars_and_markers/stem_plot.py | 6 +++--- tutorials/introductory/sample_plots.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/lines_bars_and_markers/stem_plot.py b/examples/lines_bars_and_markers/stem_plot.py index 3ea49c10b787..7f8c78a0adba 100644 --- a/examples/lines_bars_and_markers/stem_plot.py +++ b/examples/lines_bars_and_markers/stem_plot.py @@ -12,7 +12,7 @@ x = np.linspace(0.1, 2 * np.pi, 41) y = np.exp(np.sin(x)) -plt.stem(x, y) +plt.stem(x, y, use_line_collection=True) plt.show() ############################################################################# @@ -23,8 +23,8 @@ # properties are configurable via keyword arguments. For more advanced # control adapt the line objects returned by `~.pyplot`. -markerline, stemlines, baseline = plt.stem(x, y, linefmt='grey', markerfmt='D', - bottom=1.1) +markerline, stemlines, baseline = plt.stem( + x, y, linefmt='grey', markerfmt='D', bottom=1.1, use_line_collection=True) markerline.set_markerfacecolor('none') plt.show() diff --git a/tutorials/introductory/sample_plots.py b/tutorials/introductory/sample_plots.py index 28a3c580eda9..39d32250ad0d 100644 --- a/tutorials/introductory/sample_plots.py +++ b/tutorials/introductory/sample_plots.py @@ -414,6 +414,7 @@ :scale: 50 xkcd + """ ###################################################################