mirror of
https://github.com/helblazer811/ManimML.git
synced 2025-05-19 19:46:50 +08:00
15 lines
363 B
Python
15 lines
363 B
Python
from manim import *
|
|
from manim_ml.probability import GaussianDistribution
|
|
|
|
class TestShowGaussian(Scene):
|
|
|
|
def construct(self):
|
|
axes = Axes()
|
|
self.add(axes)
|
|
gaussian = GaussianDistribution(
|
|
axes,
|
|
mean=np.array([0.0, 0.0]),
|
|
cov=np.array([[2.0, 0.0], [0.0, 1.0]])
|
|
)
|
|
self.add(gaussian)
|