要画出如上图(注意原点有边距),怎么办呢? 简单而优雅,请看代码: #!/usr/bin/env python # coding=utf-8 import matplotlib.pyplot as plt def loadData(): x = [1,2,3,4,5] y = [1,4,8,9,7] labelsx = ['Apple','Banana','Orange','Pear','Cherry'] return x,y,labelsx def drawGraph(): x,y,label…