raivokolde / pheatmap

Pretty heatmaps
234 stars 83 forks source link

fix: trim table when no annotation legend #17

Closed antoine-lizee closed 8 years ago

antoine-lizee commented 9 years ago

Very simple quick fix that reduces the lost space on the right of the pheatmap if there is no annotation legend.

The only good reason not to do that is if a higher level function rely on the gtable layout being 5x6.

raivokolde commented 8 years ago

Is there lost space? The empty cells should have width 0 so it should not affect the appearance of the picture. Otherwise, I think it would be good to be consistent with the output structure so I would leave it as it is right now. Although I'm not aware of any applications using this as a feature.

But, thanks for your contributions anyway!