# -*- coding:utf-8 -*-
#功能: figure out different view's contribution to
__author__ = 'Administrator'
'''
画图
'''
import numpy as np
import matplotlib.pyplot as plt
#AUC,Precison,recall,F-Measure,FPR
v1=[0.899702,0.862453,0.930126]
v2=[0.98099,0.97593,0.98641]
v3=[0.980885, 0.97649,0.9863]
v4=[0.982178,0.977628,0.987255]
v5=[0.983808,0.979218, 0.988427]
v6=[0.98274,0.97803,0.98766]
#knn=[0.951537557,0.464342668,0.622510559,0.848088487,0.004227328]
#NaiveBayesian=[0.705354584,0.950186493,0.792806204,0.986623243,0.081741217]
x=np.arange(3)
bar_width = 0.12
opacity = 1
rects0 = plt.bar(x , v1, bar_width, alpha=opacity, edgecolor='#d33ce1',color='w',label='V1',hatch='==',lw=3)
rects1 = plt.bar(x+bar_width , v2, bar_width, alpha=opacity, edgecolor='#143ef3',color='w',
python matplotlib模块画柱状图
最新推荐文章于 2024-04-10 08:48:05 发布