Matplotlib 繪圖並保存圖像

下述代碼源於參考TensorFlow入門一中線性迴歸的實現,想將結果圖片保存查看。 python 一、導入文件: python2.7 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt 前兩行是我添加的,由於我使用的是tensorflow1.0.0版本,運行.py文件中出現錯誤提示: File "/usr/
相關文章
相關標籤/搜索