matplotlib/matplotlib — pull request #1176 by pelson (2012-08-30 12:22:39+00:00)
Title: Reverted a previous change to artist transform setting. Fixes legend bug.

On master, the following code fails to put the markers in a legend in the correct place:

```
import matplotlib.pyplot as plt

plt.subplot(222)

plt.subplot(223)
plt.scatter(range(10), range(10), label='foo')
plt.legend()

plt.show()
```

It turns out this is a result of a previous pull request of mine (#1090). This PR fixes this regression (and adds a suitable test). I will milestone this for 1.2 as it is a pretty critical bug fix.