How to draw dynamic programming table in python
问题 What is a good way to draw a dynamic programming such as this one (with the path) in python? I have looked online and I see pygame but is that really the best option for this sort of technical drawing? One option might be to use matplotlib using something like import matplotlib.pylab as plt plt.figure() col_labels=['col1','col2','col3'] row_labels=['row1','row2','row3'] table_vals=[[11,12,13],[21,22,23],[31,32,33]] the_table = plt.table(cellText=table_vals, colWidths = [0.1]*3, rowLabels=row