MCPcopy Create free account
hub / github.com/brenocq/implot3d / SetupAxisFormat

Function SetupAxisFormat

implot3d.cpp:1917–1925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915}
1916
1917void SetupAxisFormat(ImAxis3D idx, ImPlot3DFormatter formatter, void* data) {
1918 ImPlot3DContext& gp = *GImPlot3D;
1919 IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked,
1920 "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!");
1921 ImPlot3DPlot& plot = *gp.CurrentPlot;
1922 ImPlot3DAxis& axis = plot.Axes[idx];
1923 axis.Formatter = formatter;
1924 axis.FormatterData = data;
1925}
1926
1927void SetupAxisTicks(ImAxis3D idx, const double* values, int n_ticks, const char* const labels[], bool keep_default) {
1928 ImPlot3DContext& gp = *GImPlot3D;

Callers 1

DemoTickLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected