I am using scilab to do some simple simulation. The outcome will a number of plot and graph. What is the easiest way to capture these outputs and publish them into a pdf or ps file? 开发者_JAVA技巧
Hopefully it is simple to do that I can include the boilerplate code into my scilab script itself?
You can use xs2ps, xs2eps or xs2pdf. For example:
scf(0);
x=0:0.01:10;
for i=1:5
  y=sin(i*x);
  plot2d(x,y);
  filename=sprintf('d:\foo_%d.ps',i);
  xs2ps(0,filename);
  clf();
end
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论