From 90bcdaad0fb15f83322b4b39f977638b2459d80e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 2 Aug 2006 14:39:38 +0000 Subject: [PATCH] make xsize and ysize floats in aubioplot-audio make xsize and ysize floats in aubioplot-audio --- python/aubioplot-audio | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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) -- 2.26.2