logo
  • 教程列表
  • SO官方文檔
  • 關閉圖視窗
    • 使用 pyplot 關閉當前活動數字
    • 使用 plt.close() 關閉特定數字
  1. StackOverflow 文件
  2. matplotlib 教程
  3. 關閉圖視窗
  4. 使用 pyplot 關閉當前活動數字

使用 pyplot 關閉當前活動數字

Created: November-22, 2018

matplotlib 的 pyplot 介面可能是關閉數字的最簡單方法。

import matplotlib.pyplot as plt
plt.plot([0, 1], [0, 1])
plt.close()
  • 使用 plt.close() 關閉特定數字
  • 關閉圖視窗

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明