matplotlib/matplotlib — pull request #1327 by jenshnielsen (2012-10-04 15:11:30+00:00)
Title: plt.subplots: Set the visibility of the offset text to false on the shared axes. 

In the following example the xtick labels on the top axis visibilities are set to false
but the offset text is still visible. This pull request fixes that by explicitly setting the offset texts
visibility to false for the same axes. This is done even in the text does not exist but should not cause any problems in these cases. I made this pull request against v.1.2.x since I consider it a bug fix but I am fine with rebaseing against master if you think it's to close to the release for such a change.

```python
x = np.arange(0,1e10,1e9)
y = x/10.
fig,ax = plt.subplots(2,1,figsize=fig_size,sharex=True,sharey=True)
ax[0].plot(x,y)
ax[1].plot(x,y)
fig.tight_layout(pad=0.15)
fig.savefig('test.png')
```