Skip to content

Feat: Add flag to draw axis tick labels inside the plot area#668

Open
lstalmir wants to merge 9 commits intoepezent:masterfrom
lstalmir:tick-labels-inside
Open

Feat: Add flag to draw axis tick labels inside the plot area#668
lstalmir wants to merge 9 commits intoepezent:masterfrom
lstalmir:tick-labels-inside

Conversation

@lstalmir
Copy link
Copy Markdown

@lstalmir lstalmir commented Jan 17, 2026

Closes #607

The PR adds a ImPlotAxisFlags_TickLabelsInside flag that moves the tick labels into the plot area, saving space around the plot and making the plot area larger. It applies only to the innermost axes - at most 4 a time (X + Y and default + opposite).

It's useful when multiple plots have to be aligned, but some of them have much longer labels than the others and the final padding becomes significant.

2026-01-17-151454

@TheOnlyJoey
Copy link
Copy Markdown

Looks good to me, almost started implementing this myself for a current prototype.

@brenocq brenocq changed the title Add a flag to draw axis tick labels inside the plot area. Feat: Add flag to draw axis tick labels inside the plot area Apr 4, 2026
@brenocq brenocq added type:feat New feature or request prio:medium Medium priority status:review The task is under review labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prio:medium Medium priority status:review The task is under review type:feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to Position Axis Labels on Top of the Plot

3 participants