How do I manipulate the graph properties of my Scope plot?

N
Nathaniel · Sep 23, 2020 · 2.1K views
Question
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
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 29, 2026
This enhancement has been incorporated in Release 2011b (R2011b). For previous product releases, read below for any possible workarounds:
You can export your data to MATLAB and use the SIMPLOT command to plot your data from MATLAB. This will generate a MATLAB figure that will allow you to change the figure properties. For more information, type 'help simplot' at the MATLAB command window prompt.
If you need to manipulate the Scope window for simulation, you can use the following snippet of code:
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.

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!