Skip to content

Commit e51f6ea

Browse files
iangowclaude
andcommitted
Add pad to theta tick labels to clear the outer circle spine
Without padding, theta labels sit right on the outer boundary. 8 points of pad applies whenever theta labels are shown — both for full-circle plots (theta_labels=True) and partial arcs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7a26a47 commit e51f6ea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plotnine/coords/coord_radial.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,8 @@ def draw(self, axs: list[Axes]) -> None:
248248
ax.set_rlabel_position(np.degrees(self.start) + 10)
249249
else:
250250
ax.set_rlabel_position(np.degrees(float(self.r_axis_inside)))
251+
252+
# Push theta tick labels away from the outer circle so they don't
253+
# sit right on the spine.
254+
if self.theta_labels or self.end is not None:
255+
ax.tick_params(axis="x", pad=8)

0 commit comments

Comments
 (0)