Index: trunk/BNC/scripts/compareSP3Plot.pl
===================================================================
--- trunk/BNC/scripts/compareSP3Plot.pl	(revision 11130)
+++ trunk/BNC/scripts/compareSP3Plot.pl	(revision 11160)
@@ -45,4 +45,5 @@
 my @plotTypes = ();
 my @logFiles  = ();
+my $keepImages = 0;
 # read options from command line
 GetOptions(
@@ -50,7 +51,8 @@
     'plotTypes=s' => \@plotTypes,
     'logFiles=s'  => \@logFiles,
+    'keepImages'  => \$keepImages,
 );
 help() if $help;
-@plotTypes = qw(NEU) unless (@plotTypes);# Default values
+@plotTypes = qw(ALL) unless (@plotTypes);# Default values
 @plotTypes = map {uc} split ( /[, ]/, join ( ',', @plotTypes ) );# Reformat options
 @logFiles  = split ( /[, ]/, join ( ',', @logFiles ) );
@@ -349,5 +351,5 @@
     $pdf->save();
     $pdf->end();
-    unlink @pngFiles;    # only the images written here
+    unlink @pngFiles unless $keepImages;    # only the images written here
     @pngFiles = ();
     #system("evince $inputDir/$pdf_name&");
@@ -363,7 +365,8 @@
 PARAMETER:
 
-      --plotTypes     possible: ALL => RAO, CLOCK and SIS; CLK => CLOCK and CLOCKRED; RAO => RAO only;
+      --plotTypes     possible: ALL (default) => RAO, CLOCK and SIS; CLK => CLOCK and CLOCKRED; RAO => RAO only;
                       SIS => signal-in-space differences (radial minus clock) only
       --logFiles      comma separated list of BNC's SP3 comparison logfiles
+      --keepImages    keep the PNG images of the plots (deleted after inclusion in the PDF by default)
       --help          show help contents
 
