본문 바로가기

python/Matplotlib

점 그래프

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [1, 4, 9, 16], 'ro')
plt.axis([0, 6, 0, 20])
plt.ylabel('some numbers')
plt.show()

 

'python > Matplotlib' 카테고리의 다른 글

Plotting with keyword strings  (0) 2021.07.19
삼각형, 사각형, 점선 그래프  (0) 2021.07.19
pyplot_2  (0) 2021.07.19
pyplot  (0) 2021.07.19
Splitting lines into smaller chunk  (0) 2021.07.19