[Scilab-users] Exporting graphics as non pink jpg with xinit/xend

Samuel Gougeon sgougeon at free.fr
Sat Nov 19 13:30:48 CET 2016


Le 19/11/2016 10:55, Jens Simon Strom a écrit :
> Thanks Rafael,
>
> The three files are not pink (which is great) but do not show what I 
> want. I want to have superposed plots, i.e.
> test1.jpg should show one line (namely (x,1*x), that's the case)
> test2.jpg should show two lines (namely (x,2*x) and (x,1*x), that's 
> not the case)
> test3.jpg should show three lines (namely (x,3*x) and (x,2*x)and 
> (x,1*x,that's not the case)
>
> Consecutive plots are normally superposed in Scilab. But here we get 
> just the new ones.
>
> Do you see a way to unpink superposed plots? I am trying for hours 
> with no succes.
.
Could you please make it clear for us: do you really get pink plots with 
driver("jpg")?
In some posts of yours, it seems that yes, and in others, that no. So, 
what's the status?
If you get pinky plots with driver("jpg"), could you please reply to the 
comment
http://bugzilla.scilab.org/12788#c41 directly on Bugzilla? I will then 
reopen the report.

Superimposed plots and pinky plots are 2 separate things (*).

Anyway, you can get what you want -- pinky or not -- with the following:

xdel()
driver  JPG;
for  i  =  1:3
     plot([0  1],[0  i])
     f  =  gcf();
     xinit(msprintf("test%d.jpg",i))
     f2  =  copy(f);
     xend()
end
driver  REC;

Regards
Samuel Gougeon

(*) This is why, your distinct branching was not welcome there again:
http://mailinglists.scilab.org/Scilab-users-uman-2-1-is-released-tp4034964p4035025.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161119/faace357/attachment.htm>


More information about the users mailing list