From: Paul Brossier Date: Wed, 2 Aug 2006 14:39:38 +0000 (+0000) Subject: make xsize and ysize floats in aubioplot-audio X-Git-Tag: bzr2git~575 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90bcdaad0fb15f83322b4b39f977638b2459d80e;p=aubio.git make xsize and ysize floats in aubioplot-audio make xsize and ysize floats in aubioplot-audio --- diff --git a/python/aubioplot-audio b/python/aubioplot-audio index 9a15b2a5..4e34b8d5 100755 --- a/python/aubioplot-audio +++ b/python/aubioplot-audio @@ -12,10 +12,10 @@ def parse_args(): help="input sound file") parser.add_option("-x","--xsize", action="store", dest="xsize", default=1., - help="define xsize for plot") + type='float',help="define xsize for plot") parser.add_option("-y","--ysize", action="store", dest="ysize", default=1., - help="define ysize for plot") + type='float',help="define ysize for plot") parser.add_option("-O","--outplot", action="store", dest="outplot", default=None, help="save plot to output.{ps,png}") @@ -34,8 +34,9 @@ else: extension = '' outplot = None -aubio.gnuplot.plot_audio(options.filename.split(','), +aubio.gnuplot.plot_audio(options.filename.split(','), extension = extension, outplot = outplot, - xsize=float(options.xsize), - ysize=float(options.ysize)) +g, + xsize=options.xsize, + ysize=options.ysize)