x_ticks and tlist
laurent berger
laurent.berger at univ-lemans.fr
Fri Jul 6 10:05:02 CEST 2012
Hi,
I have got a problem with scilab-5.4.0-beta-1 with windows XP. Behavior is
not stable : somtetimes ticks labels are not present, sometimes are at the
wrong place and sometimes it's fine.
In Scilab-5.3.3 and 5.4.0-alpha everything are OK.
My program is :
x=0:0.1:2*%pi;
plot(x,sin(x),'r');
xtitle('Température fonction de l''heure')
xlabel('date');
ylabel('temperature (°C) ');
xgrid();
a=gca();
nb1=size(a.x_ticks.labels);
legGrad=[];
tps0=0;
for i=1:nb1(1)
tpsaxe=tps0+a.x_ticks.locations(i);
[y m d h mi s]=datevec(tpsaxe);
s=[string(d)+'/'+string(m)+ ' '+string(h)+':'+string(mi)];
while length(s)<10
s=s+' ';
end
legGrad=[legGrad; s];
end
p=a.x_ticks.locations;
a.x_ticks = tlist(["ticks", "locations", "labels"], p, legGrad);
--
View this message in context: http://mailinglists.scilab.org/x-ticks-and-tlist-tp4024526.html
Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the dev
mailing list