mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
I now support eps output
This commit is contained in:
parent
b684dc3dd4
commit
3ec5e7a417
@ -308,13 +308,14 @@ sub mainThread
|
|||||||
if( $options{hardcopy})
|
if( $options{hardcopy})
|
||||||
{
|
{
|
||||||
$outputfile = $options{hardcopy};
|
$outputfile = $options{hardcopy};
|
||||||
($outputfileType) = $outputfile =~ /\.(ps|pdf|png)$/;
|
($outputfileType) = $outputfile =~ /\.(eps|ps|pdf|png)$/;
|
||||||
if(!$outputfileType) { die("Only .ps, .pdf and .png supported\n"); }
|
if(!$outputfileType) { die("Only .eps, .ps, .pdf and .png supported\n"); }
|
||||||
|
|
||||||
my %terminalOpts =
|
my %terminalOpts =
|
||||||
( ps => 'postscript solid color landscape 10',
|
( eps => 'postscript solid color eps 10',
|
||||||
pdf => 'pdfcairo solid color font ",10" size 11in,8.5in',
|
ps => 'postscript solid color landscape 10',
|
||||||
png => 'png size 1280,1024' );
|
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 terminal $terminalOpts{$outputfileType}\n";
|
||||||
print PIPE "set output \"$outputfile\"\n";
|
print PIPE "set output \"$outputfile\"\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user