[Scilab-users] XCos cscope parameter change beafore sim

Clément David clement.david at scilab-enterprises.com
Tue Sep 30 14:22:14 CEST 2014


Hello,

Nice idea and it works fine.

Using the attached file I'm able to cleanup all opened graphic windows
at simulation start and to update plot properties at the end of the
simulation.

To check, I just used :

exec setup_plot.sce
xcos SCI/modules/xcos/demos/Command.zcos
// start the simulation on the Xcos window


--
Clément

Le mardi 23 septembre 2014 à 08:14 +0200, Grzegorz Skiba a écrit :
> Hi all, 
> 
> 
> I want to change background color and other settings of XCos CSCOPE
> block beafore simulation starts. I was trying with pre_xcos_simulate
> hook but without success. This is an example code which I want to
> setup cscope with. 
> 
> 
> // post_xcos_simulate
> list_fig=winsid();
> for i=1:length(list_fig)
> h=get_figure_handle(list_fig(i));
> axes = h.children;
> axes.grid = [1,1];
> axes.grid_style = [9,10];
> poliline = axes.children;
> poliline.polyline_style = 2;
> end
> 
> 
> Thanks for help. 
> 
> Regards Grzegorz 
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup_plot.sce
Type: application/x-scilab-sce
Size: 518 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140930/7c01cce2/attachment.bin>


More information about the users mailing list