Hello Anna, 3 points:
(1) Could you post a minimum working example? Because your code below cannot run, many variables are missing. (2) Usually, you'd better use xload/xsave to save & restore graphics (3) There seems to be a bug, as the following code: h=scf() plot() h.children(1).x_ticks.labels="Anna"+h.children(1).x_ticks.labels; sleep(100)// just in case it's a race condition xsave(TMPDIR+"/tata.sod",h); xdel(winsid()) xload(TMPDIR+"/tata.sod") Does not restore the modified x_ticks properly... Does anyone know whether this is a known bug? Antoine Le 20/04/2021 à 13:09, anna28 a écrit :
scf(); f=gcf; f.figure_position=[10,10] f.figure_size=[1000,700] clf; title(plane+" mean POSITIONS - ccode "+ccEn+" - particle "+particle, 'fontsize',4); xsetech([0,0,1,0.95]); for j=1:size(puName,'c') plot(loc(:),orbitMean(:,j),mark(j),'thickness',2); // usando 'loc' come asse x, plotta le misure distanziate correttamente nel tempo end xgrid(33); xlabel('measurement date [yyyymmdd_hh]','fontsize',3); ylabel(posRange+" position [mm]",'fontsize',3); legend(puNames_and_stat(:),-4); a=gca(); a.x_ticks = tlist(["ticks" "locations", "labels"],loc(:),labels_rot(:)); a.font_size=3; save("foo6.scg", "a");
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users