[Scilab-users] Plot: Back Ground Color

noguchi noguchi at kje.biglobe.ne.jp
Tue Mar 22 10:52:05 CET 2016


To HTH 

Thanks. I am using Scilab 5.5.2.

Whe I insert following command after the plot command, back ground color except lower figure becomes black. If I change tjhe value from 1 to 100, it shows black. It desn't work as I expected.

f = gcf(); 
f.background = 1


My commad is as follows:

figure(1)
subplot(2,1,1)
plot(t,y,'r')
title('step test data')
ylabel('process output (y)')
set(gca(),"grid",[1 1])
f = gcf(); 
f.background = 100; 

subplot(2,1,2)
plot(t,u,'b')
set(gca(),"grid",[1 1])
f = gcf(); 
f.background = 100; 

----- 元のメッセージ -----
差出人: "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives]" <ml-node+s994242n4033806h54 at n3.nabble.com>
宛先: "noguchi" <noguchi at kje.biglobe.ne.jp>
送信済み: 2016年3月22日(火曜日) 18:41:32
件名: Re: Plot: Back Ground Color

Le 22/03/2016 08:16, noguchi a écrit : 
> To HTH 
> 
> Thanks for your advise. I read the help but I tottally confused. 
> 
> I added following command after plot command, but it doesn't work. 
> 
> gcf().background = 1; 
With Scilab 6, it does, due to the new feature called "Recursive 
extraction". 
With scilab < 6: 
f = gcf(); 
f.background = 1; 

_______________________________________________ 
users mailing list 
[hidden email] 
http://lists.scilab.org/mailman/listinfo/users 





If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033806.html 
To unsubscribe from Plot: Back Ground Color, click here . 
NAML




--
View this message in context: http://mailinglists.scilab.org/Plot-Back-Ground-Color-tp4033792p4033808.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160322/51571d28/attachment.htm>


More information about the users mailing list