<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Anna,</p>
<p>3 points:</p>
<p>(1) Could you post a minimum working example?<br>
Because your code below cannot run, many variables are missing.</p>
<p>(2) Usually, you'd better use xload/xsave to save & restore
graphics</p>
<p>(3) There seems to be a bug, as the following code:</p>
<blockquote>
<p><tt>h=scf()</tt><tt><br>
</tt><tt>plot()</tt><tt><br>
</tt><tt>h.children(1).x_ticks.labels="Anna"+h.children(1).x_ticks.labels;</tt><tt><br>
</tt><tt>sleep(100)</tt><tt> // just in case it's a race
condition<br>
</tt><tt>xsave(TMPDIR+"/tata.sod",h);</tt><tt><br>
</tt><tt>xdel(winsid())</tt><tt><br>
</tt><tt>xload(TMPDIR+"/tata.sod")</tt></p>
</blockquote>
<p>Does not restore the modified x_ticks properly...</p>
<p>Does anyone know whether this is a known bug?</p>
<p>Antoine<br>
</p>
<div class="moz-cite-prefix">Le 20/04/2021 à 13:09, anna28 a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:1618916944209-0.post@n3.nabble.com">
<pre class="moz-quote-pre" wrap="">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");</pre>
</blockquote>
</body>
</html>