Changeset bf8e134


Ignore:
Timestamp:
Jul 13, 2006, 3:49:32 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
714380d
Parents:
470a772
Message:

add xsize and ysize plot options in aubiopitch
add xsize and ysize plot options in aubiopitch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubiopitch

    r470a772 rbf8e134  
    6161      action="store_true", dest="plot", default=False,
    6262      help="draw plot of the pitch track")
     63  parser.add_option("-x","--xsize",
     64      action="store", dest="xsize", default=1.,
     65      type='float', help="define xsize for plot")
     66  parser.add_option("-y","--ysize",
     67      action="store", dest="ysize", default=1.,
     68      type='float', help="define ysize for plot")
    6369  parser.add_option("-O","--outplot",
    6470      action="store", dest="outplot", default=None,
     
    117123        if options.plot: filetask.plot(pitch,wplot,oplots,titles)
    118124
     125if options.outplot:
     126  extension = options.outplot.split('.')[-1]
     127  outplot = '.'.join(options.outplot.split('.')[:-1])
     128else:
     129  extension,outplot = None,None
    119130if options.plot:
    120         filetask.plotplot(wplot,oplots,titles,outplot=options.outplot,truth=options.plottruth)
     131        filetask.plotplot(wplot,oplots,titles,outplot=outplot,extension=extension,
     132  xsize=options.xsize,ysize=options.ysize,truth=options.plottruth)
Note: See TracChangeset for help on using the changeset viewer.