Open preveen-stack opened 6 months ago
import matplotlib.pyplot as plt # Data for the table data = [ ['Name', 'Age', 'Country'], ['John', 30, 'USA'], ['Alice', 25, 'Canada'], ['Bob', 35, 'UK'] ] # Creating the table fig, ax = plt.subplots() table = ax.table(cellText=data, loc='center') # Styling the table table.auto_set_font_size(False) table.set_fontsize(12) table.scale(1.2, 1.2) # Adjust table size ax.axis('off') # Hide axes # Display the table plt.show()