[Python] matplotlib - plot ์์ง์ , ์ํ์ ๊ทธ๋ฆฌ๊ธฐ
import matplotlib.pyplot as plt plt.plot([1,2,3,4,5],[1,2,3,4,5]) # vertical lines, x=2, y = 1~4 plt.vlines(2, 1, 4) # horizontal lines, y=2, x=1~5 plt.hlines(2, 1, 5, 'y') plt.show() https://matplotlib.org/api/_as_gen/matplotlib.pyplot.vlines.html matplotlib.pyplot.vlines — Matplotlib 3.3.1 documentation Plot vertical lines. Plot vertical lines at each x from ymin to ymax. Note In addition to t..