Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ultraplot/axes/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6525,7 +6525,7 @@ def _apply_ridgeline(
else:
# Categorical (evenly-spaced) positioning mode
max_height = max(y.max() for x, y in ridges)
spacing = max_height * (1 + overlap)
spacing = max(0.0, 1 - overlap)

artists = []
# Base zorder for ridgelines - use a high value to ensure they're on top
Expand All @@ -6544,7 +6544,7 @@ def _apply_ridgeline(
y_plot = y_scaled + offset
else:
# Categorical mode: normalize and space evenly
y_normalized = y / max_height
y_normalized = y / max_height if max_height > 0 else y
offset = i * spacing
y_plot = y_normalized + offset

Expand Down
Loading