Skip to content

SVGMobject doesn't display svg image properly #1561

Closed
@underdog-programmer

Description

@underdog-programmer

Description of bug / unexpected behavior

The SVG image (an electrical circuit) consists of elements and their corresponding labels. Manim can export the circuit properly without showing any error! but the labels of the circuit elements are unfortunately missing!. Please fix the problem.
The svg image is created in Inkspace environment. And the missing lables are the text elements of Inkspace environment.

Code:

class SVGTest(Scene):
    def construct(self):
        svg = SVGMobject('./svg_images/circuit')
        svg.set(height = config['frame_height']-1)
        self.play(
            DrawBorderThenFill(svg)
        )

Expected behavior

Here is the original image in png format as svg is not supported on Github.
Original

Manim exported Scene:

SVGTest.mp4

How to reproduce the issue

Code for reproducing the problem

Additional media files

Logs

Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications

System Details
  • OS (with version, e.g Windows 10 v2004 or macOS 10.15 (Catalina)):

  • RAM:

  • Python version (python/py/python3 --version):

  • Installed modules (provide output from pip list):

PASTE HERE
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020):
  • Installed LaTeX packages:
FFMPEG

Output of ffmpeg -version:

PASTE HERE

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions