#!/usr/bin/env python2 # Copyright 2013 Perttu Luukko # This file is part of libeemd. # # libeemd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # libeemd is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with libeemd. If not, see . from numpy import loadtxt from pylab import plot, show from pyeemd.utils import plot_imfs def main(): data = loadtxt("eemd_example.out") orig = data[0] imfs = data[1:] plot(orig, label="Original data") plot_imfs(imfs) show() if __name__ == "__main__": main()