matplotlib / pyplot / グラフを描く plot()

import matplotlib.pyplot as plt

def drawGraph(xList, yList, marker):
    plt.plot(xList, yList, marker=marker)
    plt.show()


xList = range(-10, 10+1)
yList = [x**2 for x in xList]
drawGraph(xList, yList, "o")

f:id:ti-nspire:20180121160125p:plain:w400