Thanks Rafael,
That /is/ a working solution! However it introduces further complexity and computation time rises from n to n*n/2. In my project I have hundreds of files to produce an animation, and the one command 'plot(x,y(j,:));' in the minimal snippet represents about successive 10 plots in my project. I consider to go back to the flawless pdf export and to look for a conversion tool pdf2jpg supporting batch conversions.
Regards
Jens
----------------------------------------------------------------
Am 19.11.2016 11:45, schrieb Rafael Guerra:

There was a small obvious typo on last code provide ('j' -> "i"). Corrected below.

One remark: the first time I ran the code snippet, the first file output "test1.jpg" was sort of empty and pink, but not the two other files. During subsequent trials the issue did not repeat.

///// START OF CODE

driver("JPG");

xdel()

y=[];

for i=1:3

str = "test" + string(i) + ".jpg";

xinit(str);

x=[0 1];

y(i,:)= i*x;

for j=1:i

plot(x,y(j,:));

end

xend();

end

///// END OF CODE

Regards,

Rafael

*From:*users [mailto:[email protected]] *On Behalf Of *Jens Simon Strom
*Sent:* Saturday, November 19, 2016 10:56 AM
*To:* Users mailing list for Scilab <[email protected] <mailto:[email protected]>> *Subject:* Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

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'snot 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.

Kind regards
Jens
------------------------------------------------------



_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to