Interaction betweenTextbox with dynamically evaluated text and graph live mode

Hello -

We are attempting to set the live mode of a graph to one (ex. ModifyGraph/W=$graph live = 1) to keep the graph axes from updating with each change to the wave being displayed. A background function periodically toggles the live mode of the graph to update the axes. This works unless we also attempt to have a text box that displays dynamic text (From the manual "textStr can also contain the following escape code which inserts dynamically evaluated text:
\{dynText }").

Is it expected that dynamic text would force the live mode of a graph back to zero?

Is the next best solution to manually scale the graph axes?

Thank you.
Quote:
Is it expected that dynamic text would force the live mode of a graph back to zero?


Not necessarily expected but it makes some sense from my modest understanding of what is going on internally. Dependencies, such as formed by := or \{dynText} are re-evaluated on an "update". An "update" updates everything - there is no selective update.

I would avoid dependencies, including \{dynText}, for the very reason that you have discovered - they can trigger at unpredictable times and cause unpredictable side-effects. Instead update the textbox yourself, using Textbox/C/N. You could do this in a window hook, in a button action procedure, or in a background task.
Thanks for your reply.

I have tried using a tag instead, and it doesn't seem to interact with the live mode in the same way a text box with dynamic text does, but it does require displaying the tagged wave which is why I tried to text box.