I checked manim's method. I tried using BarChart.
from manimlib.imports import *
class test(Scene):
def construct(self):
values = list([0.1, 0.5, 0.7, 0.3])
names = list(range(4))
chart = BarChart(values, bar_names = names)
self.add(chart)
self.wait()
that's all.
Recommended Posts