Ignore:
Timestamp:
Sep 26, 2009, 6:34:28 AM (15 years ago)
Author:
Paul Brossier <piem@piem.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:
9a91031
Parents:
342e3807
Message:

python: finish getting rid of numarray

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/plot/notes.py

    r342e3807 re7a7794  
    4343
    4444def plotnote_withends(la,plot_title=None) :
    45         import numarray
     45        from numpy import array
    4646        import Gnuplot, Gnuplot.funcutils
    4747        d=[]
    48         x_widths = numarray.array(la[:,1]-la[:,0])/2.
     48        x_widths = array(la[:,1]-la[:,0])/2.
    4949        d.append(Gnuplot.Data(
    5050                la[:,0]+x_widths,               # x centers
     
    5858def plotnote_withoutends(la,plot_title=None) :
    5959        """ bug: fails drawing last note """
    60         import numarray
     60        from numpy import array
    6161        import Gnuplot, Gnuplot.funcutils
    6262        d=[]
    63         x_widths = numarray.array(la[1:,0]-la[:-1,0])/2;
     63        x_widths = array(la[1:,0]-la[:-1,0])/2;
    6464        d.append(Gnuplot.Data(
    6565                la[:-1,0]+x_widths,             # x centers
Note: See TracChangeset for help on using the changeset viewer.