
# https://www.globalsino.com/ICs/
# Plot table

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

fig, ax = plt.subplots()

fig.patch.set_visible(False)
ax.axis('off')
ax.axis('tight')

theColumns = ["C1", "C2", "C3"]
RowA = [10, 20, 30]
RowB = [50, 60, 70]
theDataFrame = [RowA, RowB]
df = pd.DataFrame(theDataFrame, columns=theColumns)

# Loc: the table at vertical center, top or bottom in the frame.
# ax.table(cellText=df.values, colLabels=df.columns, loc='center')
ax.table(cellText=df.values, colLabels=df.columns, cellLoc='center',
         colWidths=[0.22, 0.6, 0.25], loc='bottom')

fig.tight_layout()

plt.savefig(r"C:\GlobalSino2\ICs\images\4210c.png")
# plt.show()




