We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. Can I use custom axis formatter like that:
ImPlot::SetupAxisFormat(ImAxis_X1, secondFormatter); //<-- example //... int secondFormatter(double value, char* buff, int size, void* data) { static double v[] = {3600000,60000,1000,1,0.001,0.000001}; static const char* p[] = {"h","m","s","ms","us","ns"}; if (value == 0) { return snprintf(buff,size,"0s"); } for (int i = 0; i < 6; ++i) { if (fabs(value) >= v[i]) { return snprintf(buff,size,"%g%s",value/v[i],p[i]); } } return snprintf(buff,size,"%g%s",value/v[5],p[5]); }
I couldn't find anything else other than this function:
imgui.PlotSetupAxisFormatStr(imgui.AxisX1,"%.0f second timestamp")
The text was updated successfully, but these errors were encountered:
Unfortunately not yet. There is a dedicated issue for that #224
Sorry, something went wrong.
heh, its just missimplemented. The first argument to our callbacks is not userData itself but it is *Context
userData
*Context
const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx); void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text); void* Platform_ClipboardUserData;
63a5cdd
@hexvalid this is fixed - see PlotSetupAxisFormatPlotFormatterV
PlotSetupAxisFormatPlotFormatterV
No branches or pull requests
Hi. Can I use custom axis formatter like that:
I couldn't find anything else other than this function:
The text was updated successfully, but these errors were encountered: