From 15b8bc7576494155b3500db372b2900cb6c426aa Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Wed, 12 May 2010 23:00:39 -0700 Subject: [PATCH] added gnuplot size option --- feedGnuplot.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/feedGnuplot.pl b/feedGnuplot.pl index 4ae5e24..795240b 100755 --- a/feedGnuplot.pl +++ b/feedGnuplot.pl @@ -86,6 +86,8 @@ As an example, if line 3 of the input is "0 9 1 20" --y2 xxx Plot the data with this index on the y2 axis. These are 0-indexed + --size xxx Gnuplot size option + --hardcopy xxx If not streaming, output to a file specified here. Format inferred from filename @@ -144,6 +146,7 @@ GetOptions(\%options, "y2min=f", "y2max=f", "y2=i@", + "size=s", "hardcopy=s", "maxcurves=i", "monotonic!", @@ -287,6 +290,8 @@ sub mainThread { print(PIPE "set y2label \"" . $options{"y2label"} . "\"\n") if $options{"y2label"}; print(PIPE "set title \"" . $options{"title" } . "\"\n") if $options{"title"}; + print(PIPE "set size \"" . $options{size} . "\"\n") if defined $options{"size"}; + # For the specified values, set the legend entries to 'title "blah blah"' if($options{"legend"}) {