| 1915 | } |
| 1916 | |
| 1917 | void 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 | |
| 1927 | void SetupAxisTicks(ImAxis3D idx, const double* values, int n_ticks, const char* const labels[], bool keep_default) { |
| 1928 | ImPlot3DContext& gp = *GImPlot3D; |