Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simulink change scope background color

3,172 views
Skip to first unread message

sem peng

unread,
Oct 1, 2007, 1:25:17 PM10/1/07
to
Hi,

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

Rofe Fernandez

unread,
Oct 20, 2007, 11:59:58 PM10/20/07
to
"sem peng" <sem_...@yahoo.com.sg> wrote in message
<fdraht$mft$1...@fred.mathworks.com>...

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

sem peng

unread,
Oct 23, 2007, 1:29:24 PM10/23/07
to
"Rofe Fernandez" <nos...@spamavert.com> wrote in message
<ffeiru$lak$1...@fred.mathworks.com>...

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

checker

unread,
Oct 25, 2007, 1:49:45 PM10/25/07
to
On Oct 23, 10:29 am, "sem peng" <sem_p...@yahoo.com.sg> wrote:
> "Rofe Fernandez" <nos...@spamavert.com> wrote in message
>
> <ffeiru$la...@fred.mathworks.com>...
>
> > "sem peng" <sem_p...@yahoo.com.sg> wrote in message
> > <fdraht$mf...@fred.mathworks.com>...

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

Harish Balaga

unread,
Aug 5, 2010, 6:51:05 AM8/5/10
to
hi..
it is not possible to change the color directly.. one method that all guys mentioned works for it

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

Adam

unread,
Dec 6, 2010, 3:39:05 PM12/6/10
to
Hey,

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

Guy Rouleau

unread,
Dec 6, 2010, 8:44:07 PM12/6/10
to
"Adam " <meyas.de...@bristol.ac.uk> wrote in message <idjhl9$rk9$1...@fred.mathworks.com>...

Hi guys,

Here are my thoughts about that:

http://blogs.mathworks.com/seth/2010/06/22/how-to-customize-the-simulink-scope/

have fun ;-)

Phil Goddard

unread,
Dec 10, 2010, 8:59:07 PM12/10/10
to

Although simplot is a good option when you need to do the same thing multiple times, note that a Simulink Scope is just a MATLAB figure window.

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.

Ilham Hardy

unread,
Dec 15, 2010, 9:47:20 AM12/15/10
to
If you only want to alter the scope background for printing purpose,

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

Aida

unread,
Dec 20, 2012, 5:13:11 PM12/20/12
to
Hi. I did it. You can connect your signals to block simout (in sinks), specify variable names (for example y) and use them in matlab workspace (as for example plot(t,y)).

emnd...@gmail.com

unread,
Oct 31, 2013, 2:58:57 PM10/31/13
to
there is another easy way click the print buton left top corner of the scope window then change name to xps document it will save as a picture which has white background

Arundhadhi

unread,
Sep 10, 2014, 10:33:09 AM9/10/14
to
"Aida" wrote in message <kb02hn$j6r$1...@newscl01ah.mathworks.com>...
> Hi. I did it. You can connect your signals to block simout (in sinks), specify variable names (for example y) and use them in matlab workspace (as for example plot(t,y)).


Thanks Aida.
It was really helpful.
0 new messages