import matplotlib.pyplot as plt
x=[1,2,3]
y=[1,2,3]
fig, ax = plt.subplots()
# 取消边框
for key, spine in ax.spines.items():
# 'left', 'right', 'bottom', 'top'
if key == 'right' or key == 'top':
spine.set_visible(False)
plt.plot(x,y)
plt.show()
家有各种“熊”出没,爸爸妈妈咋应对(图)
最新推荐文章于 2025-08-07 16:38:48 发布