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)
plot quick start
(<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)
plot quick start
(<Figure size 1200x1200 with 1 Axes>, <Axes: >)

Total running time of the script: (0 minutes 2.275 seconds)

Gallery generated by Sphinx-Gallery