Skip to main content

manim-mobject-svg

Create SVG files from VMobject and VGroup.

Install: pip install manim-mobject-svg

Here's an example of how to use this plugin:

from manim import *
from manim_mobject_svg import *

a = Square(color=BLUE)
a.to_svg("square.svg")

This should create a file square.svg in the current directory and return the path to the file. The output should look like this:

svg square manim

It's also possible to create a SVG file for VGroup.

from manim import *
from manim_mobject_svg import *

a = Square(color=BLUE)
b = Circle(color=RED)
c = VGroup(a, b)
c.to_svg("group.svg")

It'll create a SVG file like this:

svg vgroup manim

Parameters for to_svg()

to_svg() takes the following parameters:

  • path: Path to the SVG file to be created. If not specified, it'll create a temporary file and return the path to the file.
  • crop: Crop the SVG file to the bounding box of the VMobject. Default: True
  • padding: Padding around the VMobject. Default: 0.5

This method returns the path to the SVG file.

Metadata

Release files for manim-mobject-svg 0.5.0

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-mobject-svg 0.5.0
File Size Uploaded
manim_mobject_svg-0.5.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for manim-mobject-svg 0.5.0
File Interpreter ABI Platform
manim_mobject_svg-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / manim_mobject_svg-0.5.0.tar.gz

Download URL manim_mobject_svg-0.5.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f8a8c21917e30ad1798c6a48290c0c2787dcb976b7b59ceb3e4a75f7a2e97fd5
BLAKE2b-256 checksum
How to use checksums
bb0106838a75caf675b8c098152270437d173d4448b4ce4cde61e8c738535c36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure

Release files / manim_mobject_svg-0.5.0-py3-none-any.whl

Download URL manim_mobject_svg-0.5.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f6403d0cb528a98f2c0678b3733edf7f24585b5f4a821baf9186162c1196d69
BLAKE2b-256 checksum
How to use checksums
ee17c4a230900c5c130244bda851ed2711d5fc5507bdd36a775e73e8c40a9afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.18 Linux/6.2.0-1018-azure

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.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