Note
Go to the end to download the full example code.
Quick Start#
The simplest way to create a meme with memeplotlib.
Your First Meme#
The meme() function creates a meme from a template ID.
The first positional argument is the template, and subsequent arguments are
text lines placed at the template’s text positions (typically top and bottom).
import memeplotlib as memes
memes.meme("buzz", "memes", "memes everywhere", show=False)

findfont: Font family ['Impact'] not found. Falling back to DejaVu Sans.
(<Figure size 1200x912.548 with 1 Axes>, <Axes: >)
Saving to a File#
Pass savefig to write the meme to disk. Set show=False to suppress
the interactive window.
memes.meme("doge", "such code", "very bug", savefig="doge_example.png", show=False)

(<Figure size 1200x1200 with 1 Axes>, <Axes: >)
Total running time of the script: (0 minutes 0.999 seconds)