[scilab-Users] Re: tics

Adrien Vogt-Schilb vogt at centre-cired.fr
Mon Feb 27 17:03:43 CET 2012


On 27/02/2012 16:49, sgougeon at free.fr wrote:
>
> ----- Mail original -----
> De: "grivet"<grivet at cnrs-orleans.fr>
> À: users at lists.scilab.org
> Envoyé: Lundi 27 Février 2012 15:34:10
> Objet: [scilab-Users] Re: tics
>
> 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;
> Only when the number of tics does not change. Else, the transient
> mismatch between the number of tics and the number of labels yields
> an error. AFAIK, it can be overcome only by defining a tlist()
> (with separators ;-))
>
> Samuel
>

Hi Samuel,
this works even when the number of tics change. Mind the code, temp is a 
tlist, which does have inconsistent fields for one line of code, but it 
does not matter as far as it is not injected in a.

br

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120227/2042c494/attachment.htm>


More information about the users mailing list