I want to manipulate my Scope properties, as I can with any MATLAB figure. For example, I would like to know how to: - Change the background/foreground color - Change the line color - Add text/legend - Print the Scope trace from Simulink - Use Data Cursor Mode
John Williams answered .
2025-11-20
shh = get(0,'ShowHiddenHandles'); set(0,'ShowHiddenHandles','On'); set(gcf,'menubar','figure'); set(gcf,'CloseRequestFcn','closereq'); set(gcf,'DefaultLineClipping','Off'); set(0,'ShowHiddenHandles',shh);
NOTE: Simulink does not support manipulating graphics properties using the Scope or Signal Viewer handle. When manipulating any graphics properties, do not change or alter the structure of the scope. For example, you should not delete any of the graphical objects (text, axes, menus, etc) in the scope as this could lead to unstable behavior.