MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / plot_apply_theme_dark

Function plot_apply_theme_dark

plot/plot.c:1571–1584  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

plot_color_hexFunction · 0.85
plot_set_grid_colorFunction · 0.85
plot_set_axis_colorFunction · 0.85
plot_set_legend_colorsFunction · 0.85

Tested by

no test coverage detected