import matplotlib.pyplot as plt
import random
from tkinter.constants import *
from tkinter import filedialog
from tkinter import messagebox
from tkinter import PanedWindow
from tkinter import font
import tkinter as tk
import tkinter.ttk as ttk

def plot():
    numdays = 100000
    time_list = range(numdays)  # [base - datetime.timedelta(days=x) for x in range(0, numdays)]
    val_arr = [random.randint(0, 10) for i in range(numdays)]
    fig, ax = plt.subplots()
    ax.plot(time_list, val_arr, '-')
    plt.show()

root = tk.Tk(screenName="screen", className="class", baseName="base")
root.geometry('200x100')
menu = tk.Menu(root)
root.config(menu=menu)

fileMenu = tk.Menu(menu)
menu.add_cascade(label="File", menu=fileMenu)
fileMenu.add_command(label="Plot", command=plot)
fileMenu.add_separator()
fileMenu.add_command(label="Exit", command=root.quit)



if __name__ == '__main__':
    ##root = tk.Tk(screenName="screen", className="class", baseName="base")
    #app = HoverInfoTest()
    root.mainloop()
