I have been trying to present a table of data in python. I've been generating the table using the matplotlib pyplot module. Unfortunately the data sets I want to present are quite large. Hence when the table displays I either get it showing the entire table, but the data is too tiny to read, or it shows the data at readable size, but cuts off the rest of the table.
My first thought was perhaps if I got the table formatted in a readable way I could then use standard pan/zoom button in the interactive navigation. However clicking and dragging around the screen doesn't seem to shift the table at all. I have tried this on pycharm and anaconda, just in case it made a difference for some reason.
Thus I am wondering, once I format the table in a readable way, how can I pan around the table? Otherwise, are there any other ways to present large amounts of data in tables using python?
Also please note that I want the table to be shown when the code is executed, not saved as an image.
Some test code I have been working with trying to solve this issue:
import numpy as np
import matplotlib.pyplot as plt
data=np.random.rand(100, 1)
cols=("column")
nrows, ncols = len(data)+1, len(cols)
hcell = 0.2
wcell = 1.0
hpad, wpad = 0, 0
fig=plt.figure(figsize=(ncols*wcell+wpad, nrows*hcell+hpad))
ax =fig.add_subplot(111)
ax.axis('off')
cellText=data
table=ax.table(cellText=cellText, colLabels=cols, loc='cent')
plt.tight_layout()
plt.show()