[Scilab-users] Exporting graphics as non pink jpg with xinit/xend
Rafael Guerra
jrafaelbguerra at hotmail.com
Sat Nov 19 14:51:51 CET 2016
Hi Jens,
You may avoid the second loop by plotting as columns:
///// START OF CODE
clear;
driver("JPG");
xdel()
y=[];
for i=1:3
str = "test" + string(i) + ".jpg";
xinit(str);
x=[0 1]';
y(:,i)= i*x;
plot(x,y(:,1:i));
xend();
end
///// END OF CODE
Regards,
Rafael
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Jens Simon Strom
Sent: Saturday, November 19, 2016 2:23 PM
To: Users mailing list for Scilab <users at lists.scilab.org>
Subject: Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161119/84c036e3/attachment.htm>
More information about the users
mailing list