| 878 | } |
| 879 | |
| 880 | void AddTicksCustom(const double* values, const char* const labels[], int n, ImPlotTicker& ticker, ImPlotFormatter formatter, void* data) { |
| 881 | for (int i = 0; i < n; ++i) { |
| 882 | if (labels != nullptr) |
| 883 | ticker.AddTick(values[i], false, 0, true, labels[i]); |
| 884 | else |
| 885 | ticker.AddTick(values[i], false, 0, true, formatter, data); |
| 886 | } |
| 887 | } |
| 888 | |
| 889 | //----------------------------------------------------------------------------- |
| 890 | // Time Ticks and Utils |