Changeset 778bc7a for python/aubio


Ignore:
Timestamp:
Aug 2, 2006, 1:23:43 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:
9bb8151
Parents:
e638bcf
Message:

if spectrum shorter than 1 second, use ms not s
if spectrum shorter than 1 second, use ms not s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/gnuplot.py

    re638bcf r778bc7a  
    123123        xorig = 0.
    124124        if not noaxis:
    125                 g.xlabel('Time (s)')
     125                if max(time) < 1.:
     126                        time = [t*1000. for t in time]
     127                        g.xlabel('Time (ms)')
     128                else:
     129                        g.xlabel('Time (s)')
    126130                g.ylabel('Frequency (Hz)')
    127131        g('set size %f,%f' % (xsize, ysize))
Note: See TracChangeset for help on using the changeset viewer.