[Scilab-users] Plot: Back Ground Color

Samuel Gougeon sgougeon at free.fr
Mon Mar 21 22:16:39 CET 2016


Le 21/03/2016 14:58, noguchi a écrit :
> When I generate a figure by using following command, the figure back ground
> is grey except  loweside figure. The back ground color of the lower side
> figure is white.
>
> subplot(2,1,1)
> plot(t,y,'r')
> title('step test data')
> ylabel('process output (y)')
> set(gca(),"grid",[1 1])
> subplot(2,1,2)
> plot(t,u,'b')
> set(gca(),"grid",[1 1])
>
>
> How can I change back ground color of my figure produced by subplot and plot
> command?
With
gcf().background = ncolor // ncolor being the color index of the chosen 
color in the colormap.
or/and with
gca().background = ncolor

You may have a look to
help figure_properties
help axes_properties

HTH




More information about the users mailing list