[scilab-Users] Customizing an Axis ...
Samuel GOUGEON
Samuel.Gougeon at univ-lemans.fr
Mon Feb 21 14:48:39 CET 2011
Hello,
----- Message d'origine -----
De : Jan M. Hollis
Date : 21/02/2011 14:20:
> Hi,
>
> How does one change the matrix size of the x axis locations and the x axis
> labels from inside a script? I see how to do it by using the graphics axes
> editor which allows one to Insert new points. For example, when I plot a figure,
> scilab chooses the ticks and subticks automatically. Let's say the resulting
> matrix is 6 by 1 -- I'd like to change it to 13 by 1
> and specify new locations and labels to go with them but do it inside the script....
The positions and labels must be changed in a once through
the a.x_ticks tlist, in the following way (example):
clf, plot2d()
a = gca();
a.x_ticks = tlist(["ticks" "locations"
"labels"],(0:6)',["A";"B";"C";"D";"E";"F";"G"])
// The first vector of strings ["ticks" "locations" "labels"] is compulsory.
Regards
Samuel
More information about the users
mailing list