def draw_table(columns_head: [], cell_vals=[]):
    plt.rcParams['font.sans-serif'] = ['SimHei']
    plt.rcParams['axes.unicode_minus'] = False
    (fig, ax) = plt.subplots(figsize=(10, 4), dpi=100)
    data = [[100, 200, 300, (- 100), 350], [(- 120), 290, (- 90), 450, 150]]
    columns = ('一', '二', '三', '四', '五')
    rows = ['A', 'B']
    index = (np.arange(len(columns)) - 0.1)
    bar_width = 0.4
    colors = ['turquoise', 'coral']
    bar1 = plt.bar(index, data[0], bar_width, color=colors[0], edgecolor='grey')
    bar2 = plt.bar((index + bar_width), data[1], bar_width, color=colors[1], edgecolor='grey')
    ax.set_title('收益情况', fontsize=16, y=1.1, x=0.44)
    ax.set_ylabel('元', fontsize=12, color='black', alpha=0.7, rotation=360)
    ax.set_ylim((- 150), 500)
    ax.tick_params(axis=u'both', which=u'both', length=0)
    plt.xticks([])
    table = plt.table(cellText=data, rowLabels=rows, rowColours=colors, colLabels=columns, cellLoc='center', loc='bottom', bbox=[0, (- 0.4), 1, 0.24])
    cellDict = table.get_celld()
    for i in range(0, len(columns)):
        cellDict[(0, i)].set_height(0.6)
        for j in range(1, (len(rows) + 1)):
            cellDict[(j, i)].set_height(0.4)
    cellDict[(1, (- 1))].set_height(0.4)
    cellDict[(2, (- 1))].set_height(0.4)
    table.auto_set_font_size(False)
    table.set_fontsize(10)
    for (key, cell) in table.get_celld().items():
        cell.set_linewidth(0.6)
    ax.spines['top'].set_visible(False)
    ax.spines['right'].set_visible(False)
    ax.spines['bottom'].set_visible(False)
    ax.spines['left'].set_visible(False)
    name = ['', '']
    ax.legend(name, handlelength=0.7, labelspacing=0.6, bbox_to_anchor=((- 0.1), (- 0.23)), loc='upper left', frameon=False)
    plt.show()
def draw_table(columns_head: [], cell_vals=[]):
    plt.rcParams['font.sans-serif'] = ['SimHei']
    plt.rcParams['axes.unicode_minus'] = False
    (fig, ax) = plt.subplots(figsize=(10, 4), dpi=100)
    data = [[100, 200, 300, (- 100), 350], [(- 120), 290, (- 90), 450, 150]]
    columns = ('一', '二', '三', '四', '五')
    rows = ['A', 'B']
    index = (np.arange(len(columns)) - 0.1)
    bar_width = 0.4
    colors = ['turquoise', 'coral']
    bar1 = plt.bar(index, data[0], bar_width, color=colors[0], edgecolor='grey')
    bar2 = plt.bar((index + bar_width), data[1], bar_width, color=colors[1], edgecolor='grey')
    ax.set_title('收益情况', fontsize=16, y=1.1, x=0.44)
    ax.set_ylabel('元', fontsize=12, color='black', alpha=0.7, rotation=360)
    ax.set_ylim((- 150), 500)
    ax.tick_params(axis=u'both', which=u'both', length=0)
    plt.xticks([])
    table = plt.table(cellText=data, rowLabels=rows, rowColours=colors, colLabels=columns, cellLoc='center', loc='bottom', bbox=[0, (- 0.4), 1, 0.24])
    cellDict = table.get_celld()
    for i in range(0, len(columns)):
        cellDict[(0, i)].set_height(0.6)
        for j in range(1, (len(rows) + 1)):
            cellDict[(j, i)].set_height(0.4)
    cellDict[(1, (- 1))].set_height(0.4)
    cellDict[(2, (- 1))].set_height(0.4)
    table.auto_set_font_size(False)
    table.set_fontsize(10)
    for (key, cell) in table.get_celld().items():
        cell.set_linewidth(0.6)
    ax.spines['top'].set_visible(False)
    ax.spines['right'].set_visible(False)
    ax.spines['bottom'].set_visible(False)
    ax.spines['left'].set_visible(False)
    name = [, ]
    ax.legend(name, handlelength=0.7, labelspacing=0.6, bbox_to_anchor=((- 0.1), (- 0.23)), loc='upper left', frameon=False)
    plt.show()