Anybody know how to change the simulink scope background
color? The background color is black, the line is yellow.
Can I change the background color to white. Cause when I
print, the graph is black color. Difficult to see the line.
Thank you.
Regards,
Sem
Im wondering about the same thing. It's getting late, so I
haven't had the time to check it thoroughly, but you can
access and change the parameters of a block using
get_paramter('path','param1','value1','param2','value2',...)
get_paramter('path','param')
It works for setting the background-colour on the simulink
blocks, though I can't seem to find the right parameters
for the scope window.
The path should be the name of the windows... for instance
'myfile\subgroup1\scope1'
http://web.ccr.jussieu.fr/ccr/Documentation/Calcul/
matlab5v11/docs/00009/009ae.htm
If you figure it out or someone else knows, please let us
know.
Regards
Roald
Hi,
MatLab can print the scope with white background.
Eg. Want to print Pr scope.
Save the data of Pr to the Matlab workspace.
Use the block (to workspace) to save to workspace.
In workspace, double click on the data you want.
Array editor will appear.
Highlight columns and row you want.
On array editor toolbar, select plot icon.
Choose type of graph to display,
Regards,
Sem
Funnest thing. I was faced with the same question today, so did a
search of this newgroup and found a nice little sample. Then I
browsed the group and saw this. Go figure...
-Chris
but i have a BETTER METHOD.. by using scope viewer..
1.right click on any block in the simulink. then click on "signal & scope Manager"
2.then a window opens with two major sections""generators" na "viewers" on the left side
3. select"viewers -> simulink -> scope" .. double click on scope.. u wil get it on right side.
4. select it and right click on the signal (below)and click"edit signal selections". select the signal u want to see on the scope
5.then double click the scope (above) .. then u can see a scope with grey background.
6.run the simulator. unlike the usual scope(with yellow signal), the signal color is blue.
7. maximise the scope and click print sceen button on ur keyboard.. paste it in MS Word 2007
8. if u still want the background color in white(rather in grey)double click the picture -> click "recolor" at extreme left of the MS office window ->"set transperent color"-> click on the grey area of the pic.
there it is..
i hope it is very useful.. it may seem bigg process, but actuallyy veryy smaall and easy process..
thank u
harish
The Matlab workspace method is good, unless you are in a hurry or have multiple axes!
If I want to print a scope output (for example as part of a report) I do Ctrl+'Print Screen' on the scope window. Copy it into MS Paint and click 'Invert Colors', then copy it back out into your document (or save as a .jpg).
This makes the background white and the line blue, which is easier to see on a print out. It does make the second line light green which isn't so easy to see. But it's a quick fix.
Ad
Hi guys,
Here are my thoughts about that:
http://blogs.mathworks.com/seth/2010/06/22/how-to-customize-the-simulink-scope/
have fun ;-)
To get the handle use
>> findall(0,'Type','figure','Tag','SIMULINK_SIMSCOPE_FIGURE')
then you can manipulate any/all the individual properties that you wish.
Phil.
You can set:
File>>Preferences>>Figure Copy Template>>Copy Options in MATLAB main window
Then check force white background box.
The only problem lies if you have more than one line in the scope, could be tricky to to separate the line since it all printed black (or yellow if you printed in color).
HTH,
Ilham