From 3ec5e7a41745ec57d98152cba280bddac788e394 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Mon, 3 Jan 2011 17:11:02 -0800 Subject: [PATCH] I now support eps output --- feedGnuplot.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/feedGnuplot.pl b/feedGnuplot.pl index 77da2b7..e6f9ff9 100755 --- a/feedGnuplot.pl +++ b/feedGnuplot.pl @@ -308,13 +308,14 @@ sub mainThread if( $options{hardcopy}) { $outputfile = $options{hardcopy}; - ($outputfileType) = $outputfile =~ /\.(ps|pdf|png)$/; - if(!$outputfileType) { die("Only .ps, .pdf and .png supported\n"); } + ($outputfileType) = $outputfile =~ /\.(eps|ps|pdf|png)$/; + if(!$outputfileType) { die("Only .eps, .ps, .pdf and .png supported\n"); } my %terminalOpts = - ( ps => 'postscript solid color landscape 10', - pdf => 'pdfcairo solid color font ",10" size 11in,8.5in', - png => 'png size 1280,1024' ); + ( eps => 'postscript solid color eps 10', + ps => 'postscript solid color landscape 10', + pdf => 'pdfcairo solid color font ",10" size 11in,8.5in', + png => 'png size 1280,1024' ); print PIPE "set terminal $terminalOpts{$outputfileType}\n"; print PIPE "set output \"$outputfile\"\n";