[Scilab-users] Setting default axes / figure values

Samuel Gougeon sgougeon at free.fr
Tue Aug 1 23:12:52 CEST 2017


Le 01/08/2017 à 18:33, Richard llom a écrit :
> Before my printing commands I'm setting up some defaults like this:
> // ==== Visualization ====
> clf();
> // Set some defaults
> defaxh = get("default_axes");
> defaxh.font_size = 3;
> defaxh.title.font_size = 4;
> defaxh.title.font_style = 9;
> defaxh.x_label.font_size = 4;
> defaxh.y_label.font_size = 4;
>
> xtitle(desc);
> ...
>
> However I noticed that these only take effect on the second run of the
> script and not immediately.
> This is obviously confusing and annoying when trying out different values.
> Which command am I missing here?

None. After modifying the default parameters, only forthcoming figures 
take them into account. Already created figures stay as they are.




More information about the users mailing list