diff options
Diffstat (limited to 'Tutorial2/Scilab_code/Tutotial2_plot_save.sce')
-rw-r--r-- | Tutorial2/Scilab_code/Tutotial2_plot_save.sce | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Tutorial2/Scilab_code/Tutotial2_plot_save.sce b/Tutorial2/Scilab_code/Tutotial2_plot_save.sce index baeecdc..1cf2566 100644 --- a/Tutorial2/Scilab_code/Tutotial2_plot_save.sce +++ b/Tutorial2/Scilab_code/Tutotial2_plot_save.sce @@ -7,19 +7,14 @@ Data = csvRead('/home/chayan/Documents/scilab-tutorials/Tutorial2/Data/Tut2_data //Segregate the data into variables y = Data(:,1); -x1 = [Data(:,2) Data(:,4)] -x2 = [Data(:,3) Data(:,4)] +x1 = Data(:,2) //Figure 1 is y versus x1 fig1 = figure(); -plot2d(y,x1); - -//Figure 2 is y versus x2 -fig2 = figure(); -plot2d(y,x2); +plot(y,x1); //Export Figure 1 as svg file xs2svg(fig1,'plot_y_versus_x1') //Export Figure 2 as pdf file -xs2pdf(fig2,'plot_y_versus_x2') +xs2pdf(fig1,'plot_y_versus_x1') |