diff --git a/examples/lines_bars_and_markers/step_demo.py b/examples/lines_bars_and_markers/step_demo.py index 12006b197e53..d8104d60e4e7 100644 --- a/examples/lines_bars_and_markers/step_demo.py +++ b/examples/lines_bars_and_markers/step_demo.py @@ -29,6 +29,18 @@ plt.legend(title='Parameter where:') plt.show() +############################################################################# +# +# ------------ +# +# The following example demonstrates the drawstyle parameter that can be used +# to modify how the points are connected. +x = np.arange(1, 14 ,0.1) +fig, ax = plt.subplots(figsize=(15, 5)) +_ = ax.plot(x, y, drawstyle='steps-post') +_ = ax.set_aspect('equal') +plt.show() + ############################################################################# # # ------------