[scilab-Users] default axes settings

Stéphane Mottelet stephane.mottelet at utc.fr
Mon Feb 9 01:23:33 CET 2009


There is a similar problem with the the user_data field, which can be
assigned in the default handles (gda(), gdf()), but not honnored at
creation of instances of these entities.

S.

François Vogel a écrit :
> Alexander Bluem said on 08/02/2009 21:16:
>> I'd really like to set the default properties of some following plots
>> in a script
>> but when I define these settings using a=gda(), and accessing the axis
>> seetings through "a", still no marks are being plotted... :(
>
> I think that what you're reporting is a bug. It works with gca() but 
> not with gda().
>
> Note for cranks: this happens identically in Scilab 4.1.2, ScicosLab 
> and even Scilab5.
>
>
>> I do not want to set each setting with gca() everytime. I believe that
>> this is what gda() was for in the first place. of course I would reset
>> these settings back with sda().
>
> If you don't want to use gca(), as a workaround you could perhaps use 
> the style argument to plot2d, with negative value:
>
> x=[0:0.1:2*%pi];
> plot2d(x-2,sin(x),style=-2)
>
> Francois


-- 
Stéphane Mottelet
Laboratoire de Mathématiques Appliquées
Université de Technologie de Compiègne
http://www.lmac.utc.fr/~mottelet



More information about the users mailing list