Add Buffer Size Limiting Functionality to Visualization Widgets
We can introduce a functionality for the visualization widget that monitors the buffer size and triggers a limit when it exceeds a set threshold. A label can be displayed at the top of the figure to indicate when the buffer trimmer is active.
This trimming feature would be particularly useful for the Waveform Monitor (1D) to prevent memory overflow during long scans.
Additionally, a popup can be added where users can select the buffer size in MB, allowing them to configure the desired limit for the monitor.