How to add labels to a boxplot figure (pylab)
问题 This is a pretty basic question I'm sure but I cannot seem to find the right code. There is my code for the boxplot I am creating. I would like to label the axes and have a title. from pylab import * import numpy raw_data = list(numpy.genfromtxt(filename, delimiter=',')) print raw_data figure() boxplot(raw_data,1) savefig('testfigure.pdf') I have tried pylab.xlabel('x') and plt.xlable('x') but those do not work...? Do they not work for boxplots or have I just got it wrong about those lines