9951 explained code solutions for 126 technologies

python-matplotlibHow to draw a table

import matplotlib.pyplot as plt

data = [[1, 2, 3, 4, 5],

plt.table(data, loc='center', colLabels=['A','B','C','D','E'])

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

data =

data to use for table cells


plot a table from specified data


position table in the middle of the chart area


list of column titles