这是一个非常基本的问题,我敢肯定,但我似乎找不到正确的代码。 这是我正在创建的boxplot的代码。我想给斧头贴上标签并有个标题。
from pylab import *
import numpy
raw_data = list(numpy.genfromtxt(filename, delimiter=','))
print raw_data
figure()
boxplot(raw_data,1)
savefig('testfigure.pdf')
我试过pylab.xlabel('x')
和plt.xlable('x')
但它们不起作用。。。?它们不适用于boxplots吗?还是我刚刚误解了那些行的工作原理?
试试这个:
编辑:图片
相关问题 更多 >
编程相关推荐