by shigemk2

当面は技術的なことしか書かない

matplotlib tutorial 2

plt.plot でx軸とy軸の配列をを交互にパラメータとして入れていく感じ

#coding: utf-8
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [1, 10, 3, 5], [1, 2, 3, 4], [9, 9, 9, 9], [1, 2, 3, 4], [1, 3, 5, 7], [1, 2, 3, 4], [10, 8, 6, 4])

plt.ylabel('some numbers')
plt.show()

Sample plots in Matplotlib — Matplotlib 2.2.3 documentation

f:id:shigemk2:20180821213147p:plain