diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 6e159ec..706ca6f 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -465,10 +465,13 @@ sub interpretCommandline { # images generally have the origin at the top-left instead of the # bottom-left, so given nothing else, I flip the y axis - if( !defined $options{ymin} && !defined $options{ymax} && + if( !defined $options{xmin} && !defined $options{xmax} && + !defined $options{ymin} && !defined $options{ymax} && + ! any { /^ *xrange\b/ } @{$options{set}} && ! any { /^ *yrange\b/ } @{$options{set}} ) { - push @{$options{set}}, "yrange [:] reverse"; + push @{$options{set}}, "xrange [:] noextend"; + push @{$options{set}}, "yrange [:] reverse noextend"; } if ( ! -r $options{image} )