epezent / epezent/implot

Show custom label format only for cursor position in plot

Open
#540 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

Hey everyone,

I'm planning to show the unit of each axis in the name of the axis. It seems a bit excessive to show the unit on every tickmark, However I do want to show the unit in the cursor position (bottom right of every plot when the cursor is over it).

For now it seems that there's no option to do this. You can either have labels everywhere, or nowhere.

![afbeelding](https://github.com/epezent/implot/assets/25931105/f86e552c-e754-41ca-9559-534c9c3ea221)
Green = wanted, red = unwanted.

I haven't figured out where exactly this is done in the code but maybe it would be helpfull to create a `ImPlotFlag_NoCustomLabelOnTicks`.

Is anyone willing to help me out on where to begin for adding this? I'm not very experienced with making pull requests yet.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.