make xsize and ysize floats in aubioplot-audio
authorPaul Brossier <piem@altern.org>
Wed, 2 Aug 2006 14:39:38 +0000 (14:39 +0000)
committerPaul Brossier <piem@altern.org>
Wed, 2 Aug 2006 14:39:38 +0000 (14:39 +0000)
make xsize and ysize floats in aubioplot-audio

python/aubioplot-audio

index 9a15b2a574c85c5619ae2eeb71278a179aef79c3..4e34b8d59a0fa93aee429627c3b1325c92548c49 100755 (executable)
@@ -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)