diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 3cb66cb..2d17876 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -720,11 +720,6 @@ sub mainThread print(PIPE "set xdata time\n"); } - # add the extra global options - print(PIPE "$_\n") foreach (@{$options{extracmds}}); - print(PIPE "set $_\n") foreach (@{$options{set}}); - print(PIPE "unset $_\n") foreach (@{$options{unset}}); - # set up histograms $options{binwidth} ||= 1; # if no binwidth given, set it to 1 print PIPE @@ -747,6 +742,11 @@ sub mainThread sendRangeCommand( "zrange", $options{zmin}, $options{zmax} ); sendRangeCommand( "cbrange", $options{zmin}, $options{zmax} ) if($options{colormap}); + # add the extra global options + print(PIPE "$_\n") foreach (@{$options{extracmds}}); + print(PIPE "set $_\n") foreach (@{$options{set}}); + print(PIPE "unset $_\n") foreach (@{$options{unset}}); +