<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
How does one change the matrix size of the x axis locations and the x axis<br>
labels from inside a script?  I see how to do it by using the graphics axes<br>
editor which allows one to Insert new points.  For example, when I plot a figure,<br>
scilab chooses the ticks and subticks automatically.   Let's say the resulting<br>
  matrix is 6 by 1 -- I'd like to change it to 13 by 1<br>
and specify new locations and labels to go with them but do it inside the script....<br>
</blockquote></div>
The positions and labels must be changed in a once through<br>
the a.x_ticks tlist, in the following way (example):<br>
clf, plot2d()<br>
a = gca();<br>
a.x_ticks = tlist(["ticks" "locations" "labels"],(0:6)',["A";"B";"C";"D";"E";"F";"G"])<br>
// The first vector of strings  ["ticks" "locations" "labels"] is compulsory.<br>
<br>
Regards<br><font color="#888888">
Samuel<br>
<br></font></blockquote><div> While experimenting with <br><br>a = gca();<br>
a.x_ticks = tlist(["ticks" "locations" "labels"],(0:6)',["A";"B";"C";"D";"E";"F";"G"])<br><br>to make it shorter, I naively deleted locations (0:6)' like this:<br>
<br>a = gca();<br>

a.x_ticks = tlist(["ticks" "locations" "labels"],["A";"B";"C";"D";"E";"F";"G"])<br><br>and Scilab stopped responding. <br>
<br>Gin.<br></div></div><br>