import matplotlib.pyplot as plt
input_values = [1, 2, 3, 4, 5]
squares = [1, 4, 9, 16, 25]
plt.plot(input_values, squares, linewidth=5) #繪圖
#設置標題,給坐標軸加上標簽
plt.title('Squares', fontsize=24)
plt.xlabel('Value', fontsize=14)
plt.ylabel('Squares of value', fontsize=14)
#設置刻度標記的大小
plt.tick_params(axis='both', labelsize=14)#刻度的樣式
plt.show() #顯示出來
Paste_Image.png