Comments (10)
Hi @gd247217,
Can you please provide a code example and how it appears to you on your end?
from manim-sideview.
`from manim import*
#0.9 and 1 prove
class circulate_prove(Scene):
def construct(self):
#self.add(NumberPlane())
t=Tex(r"$0.\dot{9}$ ? 1",color=BLUE).scale(3)
t1 = Tex(r"$0.\dot{9}$
t2=Tex(r"$0.\dot{9}$ = 1", color=BLUE).scale(3)
t3=Tex(r"$0.\dot{9}$
# &=可以用作等号对齐
self.play(ReplacementTransform(t,t1))
self.play(ReplacementTransform(t1,t2))
self.play(ReplacementTransform(t2,t3))
self.play(FadeOut(t3))
tex_1=MathTex(r'0.\dot{9} &= x\\ 9.\dot{9} &=10x\\ 9 &=9x\\ x&=1',font_size=80).move_to(LEFT*3)
tex_2 = MathTex(r'{1\over3} &= 0.\dot{3} \\ {1\over3}\times3 &= 0.\dot{3}\times3 \\ 1&=0.\dot{9}', font_size=80).move_to(RIGHT * 3)
#\times表示这样的'×'符号
self.play(Write(tex_1),run_time=4)
self.play(Write(tex_2),run_time=4)
# self.play(FadeTransformPieces(tex_1,tex_2,stretch=False,dim_to_match=2))
tex_3 = MathTex(r'0&=0+0+0+0+0 \dots \\ 0&=1-1+1-1+1-1+1-1 \dots \\ 0&=1+(-1)+1+(-1)+(1)+(-1)\dots\\ 0&=1', font_size=60, color="#66D9EF")
box_1=SurroundingRectangle(tex_3[0][16])
box_2=SurroundingRectangle(tex_3[0][36])
box_3 = SurroundingRectangle(tex_3[0][63])
grp_box=VGroup(box_1,box_2,box_3)
tex_4=MathTex(r'\dot{9}.0&=x\\ \dot{9}0.0&=10x\\ 9&=-9x\\ x&=-1=\dot{9}999\dots',font_size=80,color=YELLOW)
grp=VGroup(tex_1,tex_2)
self.play(ReplacementTransform(grp,tex_3),run_time=3)
self.play(Create(grp_box))
self.wait(1.5)
grp1=VGroup(tex_3,grp_box)
self.play(ReplacementTransform(grp1,tex_4),run_time=3)
self.wait()
text=Text("用等比数列求和试试",font="KaiTi",font_size=60,color=BLUE).to_edge(UP)
self.play(Write(text))
self.wait()
tex_6=Tex(r'$0.\dot{9}=1$',font_size=60,color=BLUE).to_edge(UP)
self.play(ReplacementTransform(text,tex_6))
self.wait()
tex_5 = MathTex(r'a_{0}= 0.9,a_{1}= 0.09,a_{2}= 0.009,\dots,a_{n}= 0.\dot{0}9',color=YELLOW,font_size=60)
self.play(ReplacementTransform(tex_4,tex_5),run_time=2)
self.wait(2)
self.play(tex_5.animate.move_to(UP*2),run_time=2,rate_functions=smooth)
tex_7=MathTex(r'S_{n} =\frac{a_{0}\times \left ( 1-q^{n} \right ) }{1-q} =\frac{0.9\times \left ( 1-({\frac{1}{10}})^n \right ) }{1-\frac{1}{10} } ',font_size=60,color=YELLOW).next_to(tex_5,DOWN)
self.play(Write(tex_7))
self.wait(1)
tex_8 = MathTex(r'\lim_{n \to \infty} (\frac{1}{10}) ^n=0',color=YELLOW,font_size=60).next_to(tex_7,DOWN)
self.play(Write(tex_8))
self.wait()
grp2=VGroup(tex_5,tex_7,tex_8)
self.play(FadeOut(grp2))
self.wait()
tex_9=tex_6.copy().scale(3)
tex_9.set_color(YELLOW)
tex_9.move_to(ORIGIN)
self.play(ReplacementTransform(tex_6,tex_9),run_time=5)
self.wait(5)`
Thank for your reply
The last two animation will flash directly,I don't know if it's because there are too many formulars or if it's running the configuration
from manim-sideview.
Hey, your code is not well formatted, can you please use the format below?
{code}
from manim-sideview.
ex_question.txt
This is my manim file.
from manim-sideview.
ex_question.txt This is my manim file.
I don't know why my manim sideview is unstable when rendering, and I don't know if it's related to the configuration of the computer.
from manim-sideview.
ex_question.txt This is my manim file.
I don't know why my manim sideview is unstable when rendering, and I don't know if it's related to the configuration of the computer.
But in the terminal and jupyter notebook, the last two animations will not be displayed when running
from manim-sideview.
ex_question.txt This is my manim file.
I don't know why my manim sideview is unstable when rendering, and I don't know if it's related to the configuration of the computer.
But in the terminal and jupyter notebook, the last two animations will not be displayed when running
windows os : windows11
vscode : 1.63.2
manim : v0.17.3
python : 3.9.13
sideview : 0.2.5
from manim-sideview.
Can you also send me your configuration file?
from manim-sideview.
Please also send rendering/screenshots as to how they are unstable
from manim-sideview.
I probably understand the problem. The reason is the configuration. My configuration is 1080p. Running manim sideview on this configuration will appear to be stuck, and some screens will end without displaying. I later changed the configuration to I installed 720p and found it works well. Thank you very much for your reply.
my previous configuration
[CLI]
frame_rate = 30
pixel_height = 1080
pixel_width = 1920
background_color = BLACK
background_opacity = 1
My modified configuration
[CLI]
frame_rate = 30
pixel_height = 720
pixel_width = 1080
background_color = BLACK
background_opacity = 1
还请发送渲染/屏幕截图以说明它们如何不稳定
In the case of high resolution, there will be frame drop. It can only be controlled below 720p or equal to 720p. Because it is not easy to cut out the part of the video frame drop, it can only be expressed in text. In short, the reason is the resolution of the configuration caused by setting the rate too high.
from manim-sideview.
Related Issues (20)
- Add an integration for Manim Studio HOT 3
- Support portrait mode HOT 7
- accept ctrl + c/d input into the manim xterm to stop process HOT 1
- load default configuration in an easier way
- command 'manim-sideview.run' not found HOT 17
- when add '-ql' cli args, it can't find the file HOT 6
- How to remove border line? HOT 3
- Display correct aspect ratio in preview window HOT 1
- Command line quotations needed HOT 1
- Commented out lines in manim.cfg are not discarded HOT 1
- mobject gallery is unable to insert into jyputer notebook HOT 1
- config file is not loading properly anymore HOT 3
- Add helpful documentation and tips HOT 1
- Icons missing in sideview buttons
- The button of sideview is missing in vscode how to configure it? HOT 6
- Just tried running the extension for the first time, got this eroor HOT 3
- When I added a video path to the file “manim.cfg”, I couldn't preview it anymore HOT 1
- "Scene" is not defined HOT 3
- The VSC extension has very annoying problems HOT 5
- CERCLE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manim-sideview.