How to update label on an animated plot without it overlaying #2064
-
Hello, My main code is in a "while" loop for pushing the updated temperatures but my label code looks like this.. t[][500] is just defining the latest value in my circular buffer. I saw the @lift function in the animated documentation but im not sure how to use it or if it is even applicable. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can directly set the label's text in your animation, assuming lab.text[] = "Temperature (°C) " * string(t[][500]) this should "just work". |
Beta Was this translation helpful? Give feedback.
You can directly set the label's text in your animation, assuming
lab::Label
:this should "just work".