[scilab-Users] graphic axis tic label with two lines

Mathieu Dubois mathieu.dubois at limsi.fr
Thu Sep 2 15:13:23 CEST 2010


Hi,
> But I think there is also a package you can use to rotate the ticks to 
> avoid overlapping.
Another (complex) solution is to draw the labels with xstring. Assuming 
the labels are already set, you could try:
X=ha.x_ticks.locations; // Get the locations on X axis
str=ha.x_ticks.labels; // Get the labels
xstring(X, min(y)-0.1, str, 45); // Draw rotated strings
// Set clip_state to "off" for each string
e=a.children(1);
n_ticks=length(e.children);
for i=1:n_ticks
     e.children(i).clip_state="off";
end
// Clear the ticks
ha.x_ticks.labels=[''];

Mathieu



More information about the users mailing list