<div dir="ltr"><div><div>Thanks for help your Clément,<br><br></div>Is there any chance to do the same at simulation start? I can scan scs_m object in the pre_xcos_simulate and find CSCOPE blocks and change its rpar/ipar parameters - but this way I can only change block parameters not the plot properties like <span>grid_style or polyline_style. Maybe it is possible to create graphics window in pre_xcos_simulation ,change default parameters and than somehow force xcos to use created windows instead of creating new with CSCOPE init procedure ? <br><br></span></div><span>Regards Grzegorz <br></span><div><div><span><br><br><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-30 14:22 GMT+02:00 Clément David <span dir="ltr"><<a href="mailto:clement.david@scilab-enterprises.com" target="_blank">clement.david@scilab-enterprises.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Nice idea and it works fine.<br>
<br>
Using the attached file I'm able to cleanup all opened graphic windows<br>
at simulation start and to update plot properties at the end of the<br>
simulation.<br>
<br>
To check, I just used :<br>
<br>
exec setup_plot.sce<br>
xcos SCI/modules/xcos/demos/Command.zcos<br>
// start the simulation on the Xcos window<br>
<br>
<br>
--<br>
Clément<br>
<br>
Le mardi 23 septembre 2014 à 08:14 +0200, Grzegorz Skiba a écrit :<br>
<div><div class="h5">> Hi all,<br>
><br>
><br>
> I want to change background color and other settings of XCos CSCOPE<br>
> block beafore simulation starts. I was trying with pre_xcos_simulate<br>
> hook but without success. This is an example code which I want to<br>
> setup cscope with.<br>
><br>
><br>
> // post_xcos_simulate<br>
> list_fig=winsid();<br>
> for i=1:length(list_fig)<br>
> h=get_figure_handle(list_fig(i));<br>
> axes = h.children;<br>
> axes.grid = [1,1];<br>
> axes.grid_style = [9,10];<br>
> poliline = axes.children;<br>
> poliline.polyline_style = 2;<br>
> end<br>
><br>
><br>
> Thanks for help.<br>
><br>
> Regards Grzegorz<br>
><br>
</div></div>> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
> <a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br>
<br>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>