Skip to content

Selecting part of an equation #1313

Answered by TonyCrane
ianchlee asked this question in Q&A
Discussion options

You must be logged in to vote

In your code, x_1 in eq is eq[0][:2], and in eq2 is eq2[0][2:4]. The whole index-mob maps in eq and eq2 are:


So you can try:

self.play(TransformFromCopy(eq[0][:2], eq2[0][2:4]))

btw, if you want to learn more about TexMobject and it’s structure in manim, you can watch this video. (Although this video is in Chinese, it has no great influence on learning the content. You can just watch the screen and ignore the Chinese subtitles.)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ianchlee
Comment options

Answer selected by TonyCrane
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants