Using matplotlib/pylab....
How do I plot 5 heatmaps as subplots which have the same number of columns but different row counts? In other words, I need each subplot's height to be scaled differently.
Perhaps an image better illustrates the problem...
alt text http://img98.imageshack.us/img98/5853/heatmap.png
I need the data points to all be square, AND the columns to be lined up, so the heights have to change according to how many rows each subplot has.
I've tried:
axis('tight')
.... but no luck so far.
I haven't tried this for any of my own work, but perhaps the matplotlib AxesGrid toolkit might be what you are looking for.
Don't use subplot but axes to create your subplots - the latter allows arbitrary positioning of the subplot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With