# HG changeset patch # User saskia-hiltemann # Date 1446199770 14400 # Node ID afb09b6aee95b68f7ba7cf92441951eac6b8a574 # Parent 8a6e2b2776d25c149192798955d18c2f2d8a6361 Uploaded diff -r 8a6e2b2776d2 -r afb09b6aee95 test-data/XY_Plot_1_multi_out.bmp Binary file test-data/XY_Plot_1_multi_out.bmp has changed diff -r 8a6e2b2776d2 -r afb09b6aee95 test-data/XY_Plot_1_multi_out.jpeg Binary file test-data/XY_Plot_1_multi_out.jpeg has changed diff -r 8a6e2b2776d2 -r afb09b6aee95 test-data/XY_Plot_1_multi_out.pdf Binary file test-data/XY_Plot_1_multi_out.pdf has changed diff -r 8a6e2b2776d2 -r afb09b6aee95 test-data/XY_Plot_1_multi_out.png Binary file test-data/XY_Plot_1_multi_out.png has changed diff -r 8a6e2b2776d2 -r afb09b6aee95 test-data/XY_Plot_1_multi_out.tiff Binary file test-data/XY_Plot_1_multi_out.tiff has changed diff -r 8a6e2b2776d2 -r afb09b6aee95 test-data/out_file5 Binary file test-data/out_file5 has changed diff -r 8a6e2b2776d2 -r afb09b6aee95 xy_plot.xml --- a/xy_plot.xml Thu Oct 29 12:00:22 2015 -0400 +++ b/xy_plot.xml Fri Oct 30 06:09:30 2015 -0400 @@ -1,5 +1,5 @@ - - for multiple series and graph types + + for multiple series and graph types and multiple output types R fontconfig @@ -10,6 +10,13 @@ + + + + + + + @@ -79,7 +86,11 @@ yrange = range( y${i}, yrange ) #end for ## Open output PDF file - png( "${out_file1}" , type="cairo") + #if $ftype.value == "pdf" + pdf("outfile.pdf") + #else + "${ftype}"( "outfile.${ftype}" , type="cairo") + #end if ## Dummy plot for axis / labels plot( NULL, type="n", xlim=xrange, ylim=yrange, main="${main}", xlab="${xlab}", ylab="${ylab}" ) ## Plot each series @@ -96,14 +107,43 @@ - + + (ftype == 'pdf') + + + (ftype == 'png') + + + (ftype == 'jpeg') + + + (ftype == 'bmp') + + + (ftype == 'tiff') + - + + + + + + + + + + + + + + + + @@ -111,7 +151,49 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +