Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1fcf6 commit d18d7d7Copy full SHA for d18d7d7
1 file changed
lib/matplotlib/axes/_axes.py
@@ -2712,7 +2712,13 @@ def sign(x):
2712
value = extrema
2713
2714
if label_type == "center":
2715
- xy = xc, yc
+ xy = (0.5, 0.5)
2716
+ kwargs["xycoords"] = (
2717
+ lambda r, b=bar:
2718
+ mtransforms.Bbox.intersection(
2719
+ b.get_window_extent(r), b.get_clip_box()
2720
+ )
2721
2722
else: # edge
2723
if orientation == "vertical":
2724
xy = xc, endpt
0 commit comments