Skip to content

Commit 52dc7b8

Browse files
committed
Set clip_on=False on geom_text artists in PolarAxes
post_setup_ax iterates ax.texts after the facet creates them and disables clipping, allowing spoke labels placed just beyond the outermost bar tip to render past the axes bounding box.
1 parent 6a0adaf commit 52dc7b8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plotnine/coords/coord_radial.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,7 @@ def post_setup_ax(self, ax: Axes) -> None:
258258
"""Apply theta label pad after facet has set tick positions and padding."""
259259
if self.theta_labels or self.end is not None:
260260
ax.tick_params(axis="x", pad=self.theta_label_pad)
261+
# Allow geom_text labels to extend past the polar axes bounding box
262+
# (e.g. spoke labels placed just beyond the outermost bar tip).
263+
for text in ax.texts:
264+
text.set_clip_on(False)

0 commit comments

Comments
 (0)