05 2021 档案
Python画图曲线图(加网格)
摘要:代码示例: import os import numpy as np import pandas as pd import matplotlib.pyplot as plt method_path = "./results_org1.txt" org = pd.read_csv(method_pat
阅读全文
python 混淆矩阵可视化
摘要:#!/usr/bin/env python # coding: utf-8 # In[28]: from __future__ import division import pandas as pd import matplotlib.pyplot as plt import matplotlib.
阅读全文
x和y轴取对数之后的散点图
摘要:python画图,x和y轴取对数之后的散点图: import numpy as np import matplotlib.pyplot as plt XY = [[9950,1360,504,1,145,102,75,56,38,26,21,24,24,15,12,8,11,8,13,4,7,5,7
阅读全文
使用matplotlib工具时调用遇到tkinter的问题
摘要:解决方法, 调用matplotlib后,加入matplotlib.use('agg'),使用其作为该backend, 即可 import matplotlib matplotlib.use('agg') ##加入该行 import matplotlib.pyplot as plt
阅读全文