首页 > 代码库 > python画箱线图

python画箱线图

技术分享

 

# -*- coding: utf-8 -*-
"""
Created on Wed Jun 14 13:00:11 2017

@author: Miao
"""

import numpy as np 
import scipy
import matplotlib as mpl
mpl.use(‘agg‘)
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from matplotlib import rc
font = { ‘weight‘ : ‘normal‘} 
fig = plt.figure(1, figsize=(16, 8))
pp = PdfPages(‘test_100.pdf‘)
T=[‘(a)‘,‘(b)‘,‘(c)‘,‘(d)‘,‘(e)‘,‘(f)‘];
data_name = [‘ORL‘,‘lung‘,‘JAFFE‘,‘COIL20‘,‘TOX_171‘,‘warpAR10P‘];
K = [‘5‘,‘20‘,‘100‘]
i = 1
for j in range(len(data_name)):
    data = http://www.mamicode.com/data_name[j]>

  

python画箱线图