[scilab-Users] Re: tics

Mathieu Dubois mathieu.dubois at limsi.fr
Mon Feb 27 15:39:36 CET 2012


On 02/27/2012 03:34 PM, grivet wrote:
> Thank you Adrien, your hint is just what was needed:
>
> ticx = 0:1:5; ticxl = string(ticx);
> .....
> temp = a.x_ticks;
> temp.locations=ticx;
> temp.labels=ticxl;
> a.x_ticks = temp;
>
> works like a charm; however, the tlist doesn't work for me:
>
> a.x_ticks=tlist(["ticks""locations""labels"],ticx,ticxl);
>
> leads to
>
> a.x_ticks=tlist(["ticks""locations""labels"],ticx,ticxl);
>                                                          !--error 144
> Opération non définie pour les opérandes données
> .
Did you forgot the commas?
a.x_ticks=tlist(["ticks", "locations", "labels"], ticx, ticxl);

> Are there constraints on the vectors ticx and ticxl?
They must have the same size (moreover ticx must be a numeric vector and 
ticxl a string vector).
>
>
> -- 
> To unsubscribe from this mailing-list, please send an empty mail to
> users-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/
>




More information about the users mailing list