.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/path_effects/test_glow_stroke.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_path_effects_test_glow_stroke.py: ==================== Glow ==================== .. GENERATED FROM PYTHON SOURCE LINES 7-23 .. image-sg:: /examples/path_effects/images/sphx_glr_test_glow_stroke_001.png :alt: test glow stroke :srcset: /examples/path_effects/images/sphx_glr_test_glow_stroke_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt from mpl_visual_context.patheffects import Glow, StrokeOnly fig, ax = plt.subplots(num=1, clear=True) y1 = [1, 3, 9, 5, 2, 1, 1] y2 = [4, 5, 5, 7, 10, 8, 6] (l1,) = ax.plot(y1, marker='o') (l2,) = ax.plot(y2, marker='o') for l in [l1, l2]: l.set_path_effects([Glow(), StrokeOnly()]) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.068 seconds) .. _sphx_glr_download_examples_path_effects_test_glow_stroke.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: test_glow_stroke.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: test_glow_stroke.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: test_glow_stroke.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_