| 832 | } |
| 833 | |
| 834 | void AddTicksCustom(const double* values, const char* const labels[], int n, ImPlotTicker& ticker, ImPlotFormatter formatter, void* data) { |
| 835 | for (int i = 0; i < n; ++i) { |
| 836 | if (labels != nullptr) |
| 837 | ticker.AddTick(values[i], false, 0, true, labels[i]); |
| 838 | else |
| 839 | ticker.AddTick(values[i], false, 0, true, formatter, data); |
| 840 | } |
| 841 | } |
| 842 | |
| 843 | //----------------------------------------------------------------------------- |
| 844 | // Time Ticks and Utils |