Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

default graphic options

1 view
Skip to first unread message

Jerome

unread,
Nov 2, 2009, 5:09:12 AM11/2/09
to
Hi all,

I create graphs with Scilab and I always add the grid, increase font
size etc. Is there a way to modify the default graphic options so that
everything is by default like I want from the start?

Serge Steer

unread,
Nov 2, 2009, 11:48:11 AM11/2/09
to
Jerome a �crit :

Yes there is;

ax=gda(); //get handle on the "default axes" entity
ax.grid=[1 1]*color('gray'); //set the grid

ax.font_size=3; //set the font size
....

Note that there is a small bug with scilab5.x a graphic window opens
while setting the properties of the default axes and it should not...
just close it.

After that all the newly created axes will inherit these properties
Same thing can be done for figure using f=gdf()


This sequence of instruction can be put in your Scilab startup file to
be executed each time Scilab is started..

Jerome

unread,
Nov 3, 2009, 5:00:46 AM11/3/09
to
thank you so mcuh,

I didn't know gda.
I put my settings in the /home/<User>/.Scilab/<Scilab-Version>/
scilab.ini file and it works fine.

0 new messages