tight_layout ignores invisible axes

`tight_layout` currently tries to make room for every subplot(-like axes) regardless of their visibility. With this PR, only visible axes are accounted.