How to scale matplotlib subnet heights individually

Using matplotlib / pylab ....

How can I build 5 heatmaps in the form of subheadings that have the same number of columns but different numbers of rows? In other words, I need each subtitle height to be scaled differently.

Perhaps the image better illustrates the problem ...

alt text http://img98.imageshack.us/img98/5853/heatmap.png

I need data points so that everything is square, And the columns that need to be built, so the heights should vary depending on how many rows each subtask has.

I tried:

  • The scaling options mentioned here . The above chart matters axis('tight').
  • Y axis scaling solutions mentioned here .

... but so far no luck.

+5
source share
2 answers

I have not tried this for any of my own work, but maybe the matplotlib AxesGrid toolkit might be what you are looking for.

+4
source

Do not use subplot , but axes to create your subplots - the latter allows arbitrary positioning of the subheading.

+2
source

All Articles