* @brief Apply the built-in dark theme. * * Sets the five chrome colours in one call: * - background: @c 0x101418 (near-black slate), * - grid lines: @c 0x202830 (dim grey), * - axes & text: @c 0xC8D2DC (off-white), * - legend background: @c 0x18202A (slightly lighter slate), * - legend text: @c 0xC8D2DC. * * Series colours are untouched, so high-satura
| 1569 | PLOT_LOG("[plot_get_series_size]: enter (plot=%p, index=%zu)", (const void*)plot, index); |
| 1570 | if (!plot || index >= plot->seriesCount) { |
| 1571 | PLOT_LOG("[plot_get_series_size]: bad arg or OOR -> 0"); |
| 1572 | return 0; |
| 1573 | } |
| 1574 | |
| 1575 | size_t n = plot->series[index].dataSize; |
| 1576 | PLOT_LOG("[plot_get_series_size]: exit -> %zu", n); |
| 1577 | |
| 1578 | return n; |
| 1579 | } |
| 1580 | |
| 1581 | |
| 1582 | /** |
| 1583 | * @brief Replace the legend label of the series at @p index. |
| 1584 | * |
| 1585 | * Allocates a deep copy of @p label first; only when that succeeds is |
| 1586 | * the previous label freed and replaced. Passing NULL is a valid way |
| 1587 | * to clear the label entirely — the series will render in the legend |
nothing calls this directly
no test coverage detected