Skip to content

Updating MathTex using a ValueTracker #3327

Answered by uwezi
VladislavKorecky asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot just set the "value" of a MathTex object and expect something to happen. MathTex() and related objects are sent to LaTeX as the external program to do the actual conversion only when they are first created. Afterward you cannot really change how they look. Also I am not quite sure if you are really after the final looks with a varying number of decimal places... you could add format specifiers to your python code though...

So in your case you can use your updaters together with the .become method, or use always_redraw from the beginning. And that's apart from the fact that you are animating the wrong objects in your self.play.
And then there is a much more suitable object for t…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@VladislavKorecky
Comment options

@VladislavKorecky
Comment options

@uwezi
Comment options

@VladislavKorecky
Comment options

Answer selected by VladislavKorecky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants