graviton1221 / danim Goto Github PK
View Code? Open in Web Editor NEWData Animation Tools based on Manim of 3blue1brown
License: MIT License
Data Animation Tools based on Manim of 3blue1brown
License: MIT License
1- extracted Danim dist into manim\Danim
pycache/
BubbleChart/
Contry.py
DATA/
demo1.py
demo2.py
Distribution.py
image/
LICENSE
README.md
2- inside manim we run
python -m manim Danim/BubbleChart/BubbleChartAnimation.py BubbleChartAnimation -p
we got this error
\python.exe: No module named manim
3- tried to run using manimgl
manimgl Danim/BubbleChart/BubbleChartAnimation.py BubbleChartAnimation -p
got this error
Traceback (most recent call last):
File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\hossam\bin\python\WPy64-3920\python-3.9.2.amd64\Scripts\manimgl.exe\__main__.py", line 7, in <module>
File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\manimlib\__main__.py", line 21, in main
config = manimlib.config.get_configuration(args)
File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\manimlib\config.py", line 300, in get_configuration
module = get_module(args.file)
File "d:\hossam\bin\python\wpy64-3920\python-3.9.2.amd64\lib\site-packages\manimlib\config.py", line 184, in get_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "Danim/BubbleChart/BubbleChartAnimation.py", line 2, in <module>
from Danim.BubbleChart.BubbleChart import *
ModuleNotFoundError: No module named 'Danim'
1- OS
> ver
Microsoft Windows [Version 10.0.19042.1526]
2- Python
> python -V
Python 3.9.2
3- manim
> pip list |grep manimgl
manimgl 1.6.1
root@fd05c35b59b1:/manim# python -m manim Danim/BubbleChart/BubbleChartAnimation.py BubbleChartAnimation -p
Media will be written to ./media/. You can change this behavior with the --media_dir flag.
Traceback (most recent call last):
File "/manim/manimlib/extract_scene.py", line 155, in main
scene = SceneClass(**scene_kwargs)
File "/manim/manimlib/scene/scene.py", line 53, in init
self.construct()
File "Danim/BubbleChart/BubbleChartAnimation.py", line 6, in construct
self.AllContriesComparison()
File "Danim/BubbleChart/BubbleChartAnimation.py", line 15, in AllContriesComparison
X,Y,R,entity_names,T = data_digest()
File "/manim/Danim/BubbleChart/BCutils.py", line 46, in data_digest
df = pd.read_csv(path,encoding = encoding ,index_col = 0)
File "/usr/local/lib/python3.7/site-packages/pandas/io/parsers.py", line 685, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.7/site-packages/pandas/io/parsers.py", line 457, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/usr/local/lib/python3.7/site-packages/pandas/io/parsers.py", line 895, in init
self._make_engine(self.engine)
File "/usr/local/lib/python3.7/site-packages/pandas/io/parsers.py", line 1135, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/lib/python3.7/site-packages/pandas/io/parsers.py", line 1917, in init
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 382, in pandas._libs.parsers.TextReader.cinit
File "pandas/_libs/parsers.pyx", line 689, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: [Errno 2] File b'Danim\DATA/X.csv' does not exist: b'Danim\DATA/X.csv'
请教一下, 看你的gif图,屏幕是被全部占满了, 这个是如何实现的?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.