8000 BUG: Return null Bbox when there is no intersection for bar_label cen… · matplotlib/matplotlib@859993b · GitHub
[go: up one dir, main page]

Skip to content

Commit 859993b

Browse files
committed
BUG: Return null Bbox when there is no intersection for bar_label center.
1 parent cf9a887 commit 859993b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ def sign(x):
27692769
lambda r, b=bar:
27702770
mtransforms.Bbox.intersection(
27712771
b.get_window_extent(r), b.get_clip_box()
2772-
)
2772+
) or mtransforms.Bbox.null()
27732773
)
27742774
else: # edge
27752775
if orientation == "vertical":

0 commit comments

Comments
 (0)
0