Skip to main content

manim_express

image image image image


English | 中文说明

Install

pip install manim_express

Run in pycharm

https://stackoverflow.com/questions/44851652/how-to-allocate-a-pseudo-tty-in-which-to-run-scripts-from-ide

(Find action 'Registry' in PyCharm) named 'run.processes.with.pty' that allows to run Python processes with tty

Quick start

  • Render an animation: 3b1b:SquareToCircle

    from manimlib import *
    from manim_express import GlEagerScene
    
    scene = GlEagerScene()
    circle = Circle()
    circle.set_fill(BLUE, opacity=0.5)
    circle.set_stroke(BLUE_E, width=4)
    
    square = Square()
    scene.show_creation(square)
    scene.play(ReplacementTransform(square, circle))
    
    scene.hold_on()
    

    Operating graphics:

    • hold down the d key or mouse left on the keyboard and move the mouse to change the three-dimensional perspective.
    • hold down the s key or mouse right on the keyboard and move the mouse to pan the screen
    • hold down the z or ctrl on the keyboard while scrolling the middle mouse button to zoom the screen
    • scroll the middle mouse button to move the screen up and down
    • reset camera view by pressing r
    • close the window and exit the program by pressing q or tab
    • pause the animation by pressing space or ctrl or alt
    • previews animation clip by pressing LEFT
    • next animation clip: RIGHT
    • replay current animation clip: DOWN
  • manim_express vs Matplotlib:
    Eager mode usage:

    from manimlib import *
    from manim_express import GlEagerScene
    CONFIG.use_online_tex = True # If you don't have installed latex locally.
    theta = np.linspace(0, 2*np.pi, 200)
    x = np.cos(theta)
    y = np.sin(theta)
    
    scene = GlEagerScene()
    scene.plot(x, y, color=GREEN, width=2, scale_ratio=1)
    scene.show_plot()
    scene.hold_on()
    

    Object oriented usage:

    from manimlib import *
    from manim_express import GlEagerScene
    from sklearn.datasets import make_multilabel_classification 
    class ScatterExample(GlEagerScene):
        def clip_1(self):
            X1, y1 =make_multilabel_classification(n_samples=200, n_classes=4, n_features=2)
            X2, y2 =make_multilabel_classification(n_samples=200, n_classes=4, n_features=2)
            self.scatter2d(X1[:, 0], X1[:, 1], size=.05, color=BLUE)
            self.scatter2d(X2[:, 0], X2[:, 1], size=.05, color=YELLOW)
    
    ScatterExample().render()
    
    It should be noted that manim is not suitable for drawing patterns that need to be accurately realized!

Resources

Examples

Release files for manim-express 0.6.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manim-express 0.6.8
File Size Uploaded
manim_express-0.6.8.tar.gz 18.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for manim-express 0.6.8
File Interpreter ABI Platform
manim_express-0.6.8-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 MB

Release files / manim_express-0.6.8.tar.gz

Download URL manim_express-0.6.8.tar.gz
Size 18.0 MB
Tags Source
SHA-256 checksum
How to use checksums
d130fe94e1a186d0217bc71ffcaf7ce4491b0935ffd28fe36b18d8549dc15bfc
BLAKE2b-256 checksum
How to use checksums
f5434af11159f602e01bcf716bd09eb2386ebfa9e264b9c32bbfe8dca94305c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / manim_express-0.6.8-py3-none-any.whl

Download URL manim_express-0.6.8-py3-none-any.whl
Size 83.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc451d7d0b56203e9e3053ae0c4555853bc4cbc9f1d6a417b91b472df7faa2bf
BLAKE2b-256 checksum
How to use checksums
c6fc4cc5365135b550503315d35daddca28ad7c4aa03dc9bb94fc26d164f4474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.6.8 This release

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.5.5

2 release files

0.5.2

2 release files

0.5.0

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.5

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.8

2 release files

0.2

2 release files

0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page