import matplotlib.pyplot as plt
import japanize_matplotlib
import pandas as pd
from datetime import datetime

x = [1,3,5,7,9,10]
with open("stats.txt", 'r',  encoding='utf-8') as f:
       for y in f:
y = 
    
        
plt.plot(x,y)

plt.xlabel("日付")
plt.ylabel("体重")
plt.title("体重の推移")

plt.show()



import matplotlib.pyplot as plt
import japanize_matplotlib
import pandas as pd
from datetime import datetime

dts = [
    datetime(2022, 2, 1, 12, 00, 00),
    datetime(2022, 2, 1, 15, 00, 00),
    datetime(2022, 2, 1, 18, 00, 00)
]

df = pd.DataFrame(
    {
    'x': dts,
    'y': [1, 2, 3],
    }
)
  
plt.figure()
plt.plot(df['x'], df['y'], marker='.')