I am looking for a way to create figure that contains several subplots which are tables. Let me try to explain what I am talking about. Below is a figure that has several subplots that are imshow plots. I want the exact same figure, but instead of `imshow’ plots I want tables, just plain tables. In my example they would just display values 1 and 2:
[1, 2]
[2, 1]
How should I do this?
Thank You in Advance

Here is the code I used to generate the graph.
import pylab
import numpy as np
x = np.array([[1,2],[2,1]])
fig = pylab.figure()
fig_list = []
for i in xrange(5):
fig_list.append( fig.add_subplot(2,3,i+1) )
fig_list[i] = pylab.imshow(x)
pylab.savefig('my_fig.pdf')
pylab.show()
You can use the pylab.table command, documentation found here.
For example:
I’ve also created an additional list variable, and renamed the fig_list, because the axes instance was being overwritten by the instance of the plotted object. Now you have access to both handles.
Other useful commands include:
Documentation: