8000 Incorporate my fix and miili's #2806 change · bwkeller/matplotlib@f21f272 · GitHub
[go: up one dir, main page]

Skip to content

Commit f21f272

Browse files
committed
Incorporate my fix and miili's matplotlib#2806 change
1 parent a0b746f commit f21f272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def add_label_near(self, x, y, inline=True, inline_spacing=5,
581581
# be a vertex in the path. So, if it isn't, add a vertex here
582582
paths = self.collections[conmin].get_paths()
583583
lc = paths[segmin].vertices
584-
xcmin = self.ax.transData.inverted().transform([xmin, ymin])
584+
xcmin = self.ax.transData.inverted().transform_point([xmin, ymin])
585585
if not np.allclose(xcmin, lc[imin]):
586586
lc = np.r_[lc[:imin], np.array(xcmin)[None, :], lc[imin:]]
587587
paths[segmin] = mpath.Path(lc)

0 commit comments

Comments
 (0)
0