I’m trying to update a text value to reflect a change in one or more
Observable. I’ve tried to do this a couple of ways.
obs = Observable(1.0)
I’ve tried putting it in a
using a few different ways of getting the value. If you use
to_value(obs), this eliminates the
Observable reference, I think, so the value will not update again. I’ve also tried to
lift() the value.
I’ve also tried to put it directly on the plot using
text!(). There was a time when I got that to work several months ago, but I can’t remember what I did and Makie has changed a lot since then.
I know that
Slider has a built-in label, but having text that reflects
Observable changes is more powerful. In the example below, there are two sine wave, and their parameters can change with sliders. I want to calculate the difference in the frequencies of the two sine waves and display it.
Is there a way to do this, or have I just not found it yet?