mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-12-20 18:01:11 +08:00
bug fix: --image doesn't touch xrange,yrange if those are given in --set
This was already implemented, but due to a bug (perl precedence was surprising) didn't work right
This commit is contained in:
@@ -502,8 +502,7 @@ sub interpretCommandline
|
||||
# bottom-left, so given nothing else, I flip the y axis
|
||||
if( !defined $options{xmin} && !defined $options{xmax} &&
|
||||
!defined $options{ymin} && !defined $options{ymax} &&
|
||||
! any { /^ *xrange\b/ } @{$options{set}} &&
|
||||
! any { /^ *yrange\b/ } @{$options{set}} )
|
||||
!any { /^ *[xy]range\b/ } @{$options{set}} )
|
||||
{
|
||||
push @{$options{set}}, "xrange [:] noextend";
|
||||
push @{$options{set}}, "yrange [:] reverse noextend";
|
||||
|
||||
Reference in New Issue
Block a user