<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hello Antoine,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 28/09/2020 à 17:20, Antoine
Monmayrant a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:6c42c750-7959-1a15-e462-e9a07b8ae880@laas.fr">Hello all,
<br>
<br>
Just wondering what is the normal way to save graphics nowadays.
<br>
I just had a look at 'help xsave' to see whether it is deprecated
or whether this is the official way to do it.
<br>
This page reads:
<br>
<br>
"For graphics xsave(file_name,win_num) use preferably
save(file_name,scf(win_num))."
<br>
</blockquote>
<p><br>
</p>
<p>This indication is clearly outdated, since save() now processes
only named variables: <a moz-do-not-send="true"
href="http://bugzilla.scilab.org/show_bug.cgi?id=11739">expressions
like "scf(win_num)" are no longer accepted</a>.</p>
<p>I agree that the motivation for using xsave() instead of save is
quite obscur.<br>
Maybe there were some good reasons to implement a specific
function (or may be not),<br>
but today xsave(filename, idf) appears to be only a shortcut for<br>
<br>
idf = findobj("figure_id",idf);<br>
save(filename, "idf")<br>
clear idf<br>
</p>
<p>Is it really worth having a specific public function, instead for
instance of opening the overload for save(filemane, figure_handle)
?<br>
<br>
</p>
<blockquote type="cite"
cite="mid:6c42c750-7959-1a15-e462-e9a07b8ae880@laas.fr">Hmm, I
don't get it.
<br>
Does it mean that I should better use
"save(file_name,scf(win_num))" for graphics objects?
<br>
If it's the case, what is the point of xsave?
<br>
<br>
I'm a bit lost...
<br>
</blockquote>
<p><br>
</p>
<p>If you do not think it's worth keeping xsave, please do not
hesitate asking on bugzilla for obsoleting it and opening save()
to overloading according to it's 2nd argument.
</p>
<p>Regards<br>
Samuel</p>
<br>
</body>
</html>