Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
Description
This is a regression in 2.0b3 compared to 1.5.2 (haven't bisected more)
from matplotlib import pyplot as plt
import numpy as np
np.random.seed(1)
fig, (ax1, ax2) = plt.subplots(2)
for x, y in np.random.rand(10, 2):
ax1.text(x, y, "foo", clip_on=True)
ax2.text(x, y, "foo")
plt.show()
1.5.2 displays everything fine

2.0b3 clips away all text objects in the top axes

(so I'm marking this as 2.0 but feel free to change it)
The texts actually appear to be clipped to the "wrong" place and use the wrong zorder: you can see them appear "behind the axes" if you pan the axes as below:

Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Activity
tacaswell commentedon Jul 20, 2016
yikes!
tacaswell commentedon Jul 25, 2016
I can confirm this and agree it needs to be bisected. Nothing obvious is jumping out at me.
jenshnielsen commentedon Jul 25, 2016
I have bisected it and it looks like the first bad commit is the merge of #5361
jenshnielsen commentedon Jul 25, 2016
I can also confirm that neither the cairo or pdf backend has the issue.
Fix matplotlib#6794: Clipping rectangle needs to be inverted
Merge pull request #7003 from mdboom/clipping-text