<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#330000">
On 27/02/2012 16:49, <a class="moz-txt-link-abbreviated" href="mailto:sgougeon@free.fr">sgougeon@free.fr</a> wrote:
<blockquote
cite="mid:587fd8dd-0ce1-4f73-a6f9-c40f52939253@zimbra75-e12.priv.proxad.net"
type="cite">
<pre wrap="">
----- Mail original -----
De: "grivet" <a class="moz-txt-link-rfc2396E" href="mailto:grivet@cnrs-orleans.fr"><grivet@cnrs-orleans.fr></a>
À: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
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;
</pre>
<blockquote type="cite">
<pre wrap="">works like a charm;
</pre>
</blockquote>
<pre wrap="">
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
</pre>
</blockquote>
<br>
Hi Samuel, <br>
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>
<br>
br<br>
<br>
</body>
</html>