matrix-profile-foundation / matrixprofile

A Python 3 library making time series data mining tasks, utilizing matrix profile algorithms, accessible to everyone.
https://matrixprofile.org
Apache License 2.0
360 stars 62 forks source link

analyze function #106

Open adityabhandwalkar opened 1 year ago

adityabhandwalkar commented 1 year ago

Hello community ,

I would like to ask your help regarding the analyze function in the pan matrix profile, Here is the code I'm using

class sample():

    def demos(self,path):
        #Reading the data from the file
        df = pd.read_csv(path)
        data = np.array(df.iloc[:,2])
        data = data[10000000:10010000]

        print(data)
        plt.title('vibration')
        plt.xlabel('Time')
        plt.ylabel('Vibration ')
        plt.plot(data)
        plt.show()
        profile, figures = mp.analyze(data)

and it is showing following line in command .py:433: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect. fig.tight_layout(). I would like to plot the plots which are mentioned in this tutorial