Create a beautiful graph with Manim

We explain step by step how to create a graph, showing the interquartile range with Manim.

Quentin Gallouédec
5 min readNov 28, 2021

Prerequisites

In this tutorial, I use version 0.12.0 of Manim. I have no idea if it works with earlier or later versions. I assume you know the basic use of Manim. If you don’t, take a look at the many tutorials for beginners available.

The full code is available in the last section.

Create axis

First thing to do is to create axis. For this, nothing could be simpler:

from manim import *  # I'll skip this line for the following

class MyBeautifulGraph(Scene):
def construct(self):
axes = Axes()
self.add(axes)

Then, build the scene using

manim your_file.py

Here is the result.

Create a line

--

--

Quentin Gallouédec
Quentin Gallouédec

Responses (1)