import numpy as np import matplotlib.pyplot as plt x = [1,2,3, 4, 5, 6, 7, 8, 9, 10] # データのx成分 y = [1,4,9,16,25,36,49,64,81,100] # データのy成分 plt.title("graph") plt.xlabel("x") plt.ylabel("y") plt.plot(x, y) plt.show()