2808 explained code solutions for 75 technologies


python-matplotlibHow to set table row height


import matplotlib.pyplot as plt

data = [[1, 2, 3, 4, 5],
        [10,20,30,40,50],
        [11,21,31,41,51]]

t = plt.table(data, loc='center')
t.scale(1, 3)

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

loads Matplotlib module to use plotting capabilities

data =

data to use for table cells

.table(

plot a table from specified data

loc='center'

position table in the middle of the chart area

.scale(

scales table cells accordingly to given width/height

1, 3

do not scale width (1) and scale height by 3x (3)