Skip to content
Discussion options

You must be logged in to vote

Have a look into "ImPlot", e.g.

https://github.com/epezent/implot/blob/3da8bd34299965d3b0ab124df743fe3e076fa222/implot.h#L742

// Sets the format of numeric axis labels via formatter callback. Given #value, write a label into #buff. Optionally pass user data.
IMPLOT_API void SetupAxisFormat(ImAxis axis, ImPlotFormatter formatter, void* data=nullptr);

https://github.com/epezent/implot/blob/3da8bd34299965d3b0ab124df743fe3e076fa222/implot.cpp#L49:

  • ImPlotFormatters should now return an int indicating the size written

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by brenocq
Comment options

You must be logged in to vote
1 reply
@brenocq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants