Added --squarexy and --square-xy as synonyms to --square_xy

This commit is contained in:
Dima Kogan
2019-06-27 11:10:35 -07:00
parent 55faefec8b
commit 29f4f5a368
3 changed files with 8 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ sub interpretCommandline
'title=s', 'xlen=f', 'ymin=f', 'ymax=f', 'xmin=s', 'xmax=s', 'y2min=f', 'y2max=f',
'zmin=f', 'zmax=f', 'y2=s@',
'style=s{2}', 'curvestyle=s{2}', 'curvestyleall=s', 'styleall=s', 'with=s', 'extracmds=s@', 'set=s@', 'unset=s@',
'square!', 'square_xy!', 'hardcopy=s', 'maxcurves=i', 'monotonic!', 'timefmt=s',
'square!', 'square_xy!', 'square-xy!', 'squarexy!', 'hardcopy=s', 'maxcurves=i', 'monotonic!', 'timefmt=s',
'equation=s@',
'image=s',
'histogram=s@', 'binwidth=f', 'histstyle=s',
@@ -143,6 +143,10 @@ sub interpretCommandline
delete $options{styleall};
}
# various square-xy synonyms
$options{'square_xy'} = 1 if $options{'square-xy'} || $options{'squarexy'};
push @{$options{curvestyle}}, @{$options{style}};
delete $options{style};
@@ -2005,7 +2009,7 @@ all 3 axes
=item
C<--square_xy>
C<--square-xy>
For 3D plots, set square aspect ratio for ONLY the x,y axes