mirror of
				https://github.com/dkogan/feedgnuplot.git
				synced 2025-10-30 07:28:06 +08:00 
			
		
		
		
	Added --squarexy and --square-xy as synonyms to --square_xy
This commit is contained in:
		| @@ -109,7 +109,7 @@ sub interpretCommandline | |||||||
|              'title=s', 'xlen=f', 'ymin=f', 'ymax=f', 'xmin=s', 'xmax=s', 'y2min=f', 'y2max=f', |              'title=s', 'xlen=f', 'ymin=f', 'ymax=f', 'xmin=s', 'xmax=s', 'y2min=f', 'y2max=f', | ||||||
|              'zmin=f', 'zmax=f', 'y2=s@', |              'zmin=f', 'zmax=f', 'y2=s@', | ||||||
|              'style=s{2}', 'curvestyle=s{2}', 'curvestyleall=s', 'styleall=s', 'with=s', 'extracmds=s@', 'set=s@', 'unset=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@', |              'equation=s@', | ||||||
|              'image=s', |              'image=s', | ||||||
|              'histogram=s@', 'binwidth=f', 'histstyle=s', |              'histogram=s@', 'binwidth=f', 'histstyle=s', | ||||||
| @@ -143,6 +143,10 @@ sub interpretCommandline | |||||||
|     delete $options{styleall}; |     delete $options{styleall}; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   # various square-xy synonyms | ||||||
|  |   $options{'square_xy'} = 1 if $options{'square-xy'} || $options{'squarexy'}; | ||||||
|  |  | ||||||
|  |  | ||||||
|   push @{$options{curvestyle}}, @{$options{style}}; |   push @{$options{curvestyle}}, @{$options{style}}; | ||||||
|   delete $options{style}; |   delete $options{style}; | ||||||
|  |  | ||||||
| @@ -2005,7 +2009,7 @@ all 3 axes | |||||||
|  |  | ||||||
| =item | =item | ||||||
|  |  | ||||||
| C<--square_xy> | C<--square-xy> | ||||||
|  |  | ||||||
| For 3D plots, set square aspect ratio for ONLY the x,y axes | For 3D plots, set square aspect ratio for ONLY the x,y axes | ||||||
|  |  | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ complete -W               \ | |||||||
|     --monotonic           \ |     --monotonic           \ | ||||||
|     --points              \ |     --points              \ | ||||||
|     --square              \ |     --square              \ | ||||||
|     --square_xy           \ |     --square-xy           \ | ||||||
|     --stream              \ |     --stream              \ | ||||||
|     --terminal            \ |     --terminal            \ | ||||||
|     --timefmt             \ |     --timefmt             \ | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ _arguments -S | |||||||
|     '*--equation[Raw symbolic equation]:equation'                                 \ |     '*--equation[Raw symbolic equation]:equation'                                 \ | ||||||
|     '--image[Image file to render beneath the data]:image:_files -g "(#i)*.(jpg|jpeg|png|gif)"' \ |     '--image[Image file to render beneath the data]:image:_files -g "(#i)*.(jpg|jpeg|png|gif)"' \ | ||||||
|     '--square[Plot data with square aspect ratio]'                                \ |     '--square[Plot data with square aspect ratio]'                                \ | ||||||
|     '--square_xy[For 3D plots, set square aspect ratio for ONLY the x,y axes]'    \ |     '--square-xy[For 3D plots, set square aspect ratio for ONLY the x,y axes]'    \ | ||||||
|     '--hardcopy[Plot to a file]:new image filename:_files -g "(#i)*.(jpg|jpeg|png|gif)"' \ |     '--hardcopy[Plot to a file]:new image filename:_files -g "(#i)*.(jpg|jpeg|png|gif)"' \ | ||||||
|     '--maxcurves[The maximum allowed number of curves]:number of curves'          \ |     '--maxcurves[The maximum allowed number of curves]:number of curves'          \ | ||||||
|     '(--3d)--monotonic[Resets plot if an X in the past is seen]'                  \ |     '(--3d)--monotonic[Resets plot if an X in the past is seen]'                  \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dima Kogan
					Dima Kogan