import matplotlib.pyplot as mp

mp.figure('图例', facecolor='lightgray')
for i in range(1, 10):
    mp.subplot(3, 3, i)
    mp.title('picture%d' % i)
    mp.text(0.5, 0.5, str(i), fontsize=36, alpha=0.8, ha='center', va='center')
    mp.xticks([])
    mp.yticks([])
    ax = mp.gca()
    ax.spines['top'].set_color('none')
    ax.spines['bottom'].set_color('none')
    ax.spines['left'].set_color('none')
    ax.spines['right'].set_color('none')

mp.tight_layout()
mp.show()

matplotlib之去除坐标系

相关文章:

  • 2022-01-17
  • 2021-09-10
  • 2021-06-13
  • 2021-11-11
  • 2021-06-07
  • 2022-12-23
  • 2021-05-27
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2021-05-13
  • 2022-01-28
  • 2021-06-14
  • 2022-01-21
相关资源
相似解决方案