Skip to content

Add secondary axes (sec_axis / dup_axis)#1097

Merged
has2k1 merged 9 commits into
mainfrom
sec-axis
Jul 7, 2026
Merged

Add secondary axes (sec_axis / dup_axis)#1097
has2k1 merged 9 commits into
mainfrom
sec-axis

Conversation

@has2k1

@has2k1 has2k1 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

This PR adds secondary axes: a one-to-one transformation of theprimary axis via sec_axis(), or a mirrored copy via dup_axis(), set through a position scale's sec_axis argument, e.g.

scale_x_continuous(sec_axis=dup_axis())
scale_y_continuous(sec_axis=sec_axis(lambda y: y * 2, name="2x"))

@has2k1 has2k1 merged commit 3b23203 into main Jul 7, 2026
13 of 14 checks passed
@has2k1 has2k1 deleted the sec-axis branch July 7, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant