Changes made in the “live” Scope window only live for that simulation session. To permanently remove markers, we can alter the block’s stored parameters (either via the Block Parameters dialog or via get_param/set_param on the ScopeConfiguration object) but I tried that and unfortunately those style settings live under the hood and are not exposed for scripting.
Please refer to these MATLAB answers I found for more information:
Hope this helps!
