Hello Antoine, Le 28/09/2020 à 17:20, Antoine Monmayrant a écrit :
Hello all,Just wondering what is the normal way to save graphics nowadays.I just had a look at 'help xsave' to see whether it is deprecated or whether this is the official way to do it.This page reads:"For graphics xsave(file_name,win_num) use preferably save(file_name,scf(win_num))."
This indication is clearly outdated, since save() now processes only named variables: expressions like "scf(win_num)" are no longer accepted <http://bugzilla.scilab.org/show_bug.cgi?id=11739>.
I agree that the motivation for using xsave() instead of save is quite obscur. Maybe there were some good reasons to implement a specific function (or may be not),
but today xsave(filename, idf) appears to be only a shortcut for
idf = findobj("figure_id",idf);
save(filename, "idf")
clear idf
Is it really worth having a specific public function, instead for
instance of opening the overload for save(filemane, figure_handle) ?
Hmm, I don't get it.Does it mean that I should better use "save(file_name,scf(win_num))" for graphics objects?If it's the case, what is the point of xsave? I'm a bit lost...
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.
Regards Samuel
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
