[Scilab-users] xsetech, plot and background

Samuel Gougeon sgougeon at free.fr
Wed Apr 6 18:25:16 CEST 2016


Le 22/03/2016 15:50, anna78 a écrit :
> Hi all,
>
> I'm making the attached figure using the following code.
> Can you help me to take out the bad white background appearing in the last
> (other time in both) the subplots?
>
> thanks!
> Anna
>
> clf(1);
> //f=gcf(); // macro shortcut <=> f=get("current_figure")
> f=figure(1); // creo figure con id=1
> f.figure_position=[200,0]
> f.figure_size=[800,700]
> f.figure_name=particle+' monitoring (hour average)';
>
> subplot(211)
> xtitle(particle+" mean position @ PUB - hour average");
> xsetech([0,0,0.8,0.4]);
> //g=gcf();
> //g.background=0;
> xlabel('timestamp (yymmddhh)');
> ylabel('[mm]');
> plot(xMean,'r.','markersiz',3);
> plot(yMean,'k.','markersiz',3);
> xgrid(0); //0=black; 2=blue;
>
> subplot(212)
> xtitle(particle+" standard deviation @ PUB - hour average");
> xsetech([0,0.5,0.8,0.4]);
> xlabel('timestamp (yymmddhh)');
> ylabel('[mm]');
> plot(xDevSt,'r.','markersiz',3);
> plot(yDevSt,'k.','markersiz',3);
> //
> xgrid(0); //0=black; 2=blue; .
>
>
> <http://mailinglists.scilab.org/file/n4033821/PUB_PROTON_monitoring_v0_736398.png>  
Another even simpler way is to replace the subplot() lines with the 
xsetech() ones.
xsetech() is a kind of customized subplot() function. It is useless to 
call both subplot() and xsetech().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160406/b698daf5/attachment.htm>


More information about the users mailing list