.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_customization.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_auto_examples_plot_customization.py: Text Customization ================== Control font, color, outline, and case style for meme text. .. GENERATED FROM PYTHON SOURCE LINES 9-13 Font and Color --------------- Use ``font``, ``color``, and ``style`` to customise the text appearance. .. GENERATED FROM PYTHON SOURCE LINES 13-21 .. code-block:: Python import memeplotlib as memes memes.meme( "drake", "writing tests", "shipping to prod", font="impact", color="yellow", style="upper", show=False, ) .. image-sg:: /auto_examples/images/sphx_glr_plot_customization_001.png :alt: plot customization :srcset: /auto_examples/images/sphx_glr_plot_customization_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (
, ) .. GENERATED FROM PYTHON SOURCE LINES 22-26 Font Size ---------- Use ``fontsize`` to set the text size in points. .. GENERATED FROM PYTHON SOURCE LINES 26-32 .. code-block:: Python memes.meme( "buzz", "big text", "big memes", fontsize=120, show=False, ) .. image-sg:: /auto_examples/images/sphx_glr_plot_customization_002.png :alt: plot customization :srcset: /auto_examples/images/sphx_glr_plot_customization_002.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (
, ) .. GENERATED FROM PYTHON SOURCE LINES 33-37 Outline Control ---------------- Adjust ``outline_color`` and ``outline_width`` for the classic meme look. .. GENERATED FROM PYTHON SOURCE LINES 37-43 .. code-block:: Python memes.meme( "buzz", "white on black", "the classic", color="white", outline_color="black", outline_width=3.0, show=False, ) .. image-sg:: /auto_examples/images/sphx_glr_plot_customization_003.png :alt: plot customization :srcset: /auto_examples/images/sphx_glr_plot_customization_003.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (
, ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.401 seconds) .. _sphx_glr_download_auto_examples_plot_customization.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_customization.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_customization.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_customization.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_