History

make xsize and ysize floats in aubioplot-audio make xsize and ysize floats in aubioplot-audio

Paul Brossier committed 20 years ago

Commit 90bcdaa1 parent 9bb81511 file · +6 −5Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/aubioplot-audio+6−5
@@ -12,10 +12,10 @@ def parse_args(): · 11 unmodified lines
1212 help="input sound file")
1313 parser.add_option("-x","--xsize",
1414 action="store", dest="xsize", default=1.,
15− help="define xsize for plot")
15+ type='float',help="define xsize for plot")
1616 parser.add_option("-y","--ysize",
1717 action="store", dest="ysize", default=1.,
18− help="define ysize for plot")
18+ type='float',help="define ysize for plot")
1919 parser.add_option("-O","--outplot",
2020 action="store", dest="outplot", default=None,
2121 help="save plot to output.{ps,png}")
@@ -34,8 +34,9 @@ else: · 12 unmodified lines
3434 extension = ''
3535 outplot = None
3636
37−aubio.gnuplot.plot_audio(options.filename.split(','),
37+aubio.gnuplot.plot_audio(options.filename.split(','),
3838 extension = extension,
3939 outplot = outplot,
40− xsize=float(options.xsize),
41− ysize=float(options.ysize))
40+g,
41+ xsize=options.xsize,
42+ ysize=options.ysize)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t