Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -12,10 +12,10 @@ def parse_args(): · 11 unmodified lines | ||
| 12 | 12 | help="input sound file") |
| 13 | 13 | parser.add_option("-x","--xsize", |
| 14 | 14 | action="store", dest="xsize", default=1., |
| 15 | − help="define xsize for plot") | |
| 15 | + type='float',help="define xsize for plot") | |
| 16 | 16 | parser.add_option("-y","--ysize", |
| 17 | 17 | action="store", dest="ysize", default=1., |
| 18 | − help="define ysize for plot") | |
| 18 | + type='float',help="define ysize for plot") | |
| 19 | 19 | parser.add_option("-O","--outplot", |
| 20 | 20 | action="store", dest="outplot", default=None, |
| 21 | 21 | help="save plot to output.{ps,png}") |
| @@ -34,8 +34,9 @@ else: · 12 unmodified lines | ||
| 34 | 34 | extension = '' |
| 35 | 35 | outplot = None |
| 36 | 36 | |
| 37 | −aubio.gnuplot.plot_audio(options.filename.split(','), | |
| 37 | +aubio.gnuplot.plot_audio(options.filename.split(','), | |
| 38 | 38 | extension = extension, |
| 39 | 39 | outplot = outplot, |
| 40 | − xsize=float(options.xsize), | |
| 41 | − ysize=float(options.ysize)) | |
| 40 | +g, | |
| 41 | + xsize=options.xsize, | |
| 42 | + ysize=options.ysize) | |