Borrar filtros
Borrar filtros

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

10 visualizaciones (últimos 30 días)
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

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 15 de Nov. de 2011
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.

Más respuestas (0)

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by