[matplotlib] y축 눈금 라벨 제거

황종수·2020년 12월 28일
0

matplotlib

목록 보기
7/7

예시 코드

import matplotlib.pyplot as plt

plt.plot([0, 10], [0, 10])
plt.xlabel("X Label")
plt.ylabel("Y Label")

ax = plt.gca()
ax.axes.xaxis.set_visible(False)
ax.axes.yaxis.set_visible(False)

plt.grid(True)
plt.show()

출처:https://www.delftstack.com/ko/howto/matplotlib/how-to-hide-axis-text-ticks-and-or-tick-labels-in-matplotlib/

profile
호앙조옹스우

0개의 댓글