直接上代码:import matplotlib.pylab as pltimport numpy as npplt.figure()axes=plt.gca()y= np.random.randn(9)col_labels=['col1','col2','col3']row_labels=['row1','row2','row3']table_vals=[[11,12,13],[21,22,23],[28,29,30]]row_colors=['red','gold','green']col_c