custom settings are now set AFTER all our internal ones

Thus the custom settings take precedence
This commit is contained in:
Dima Kogan 2017-09-30 19:16:54 -07:00
parent 6f091d1cf2
commit 5758865246

View File

@ -720,11 +720,6 @@ sub mainThread
print(PIPE "set xdata time\n"); 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 # set up histograms
$options{binwidth} ||= 1; # if no binwidth given, set it to 1 $options{binwidth} ||= 1; # if no binwidth given, set it to 1
print PIPE print PIPE
@ -747,6 +742,11 @@ sub mainThread
sendRangeCommand( "zrange", $options{zmin}, $options{zmax} ); sendRangeCommand( "zrange", $options{zmin}, $options{zmax} );
sendRangeCommand( "cbrange", $options{zmin}, $options{zmax} ) if($options{colormap}); 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}});