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

Function plot_series_sum

plot/plot.c:1729–1745  ·  view source on GitHub ↗

* @brief Sum of y values in the series at @p index. * * Accumulates the series' yData buffer in a @c double accumulator and * stores the @c float-truncated result in @p *out. Using a double * accumulator improves accuracy for long series of small floats, * though the final cast can still lose precision when the result * exceeds @c FLT_MAX or has more than ~7 significant digits. * * The fun

Source from the content-addressed store, hash-verified

1727
1728
1729/**
1730 * @brief Apply the built-in light theme.
1731 *
1732 * Sets the five chrome colours in one call:
1733 * - background: @c 0xFFFFFF (pure white),
1734 * - grid lines: @c 0xDCDCDC (very pale grey),
1735 * - axes & text: @c 0x000000 (black),
1736 * - legend background: @c 0xF5F5F5 (off-white),
1737 * - legend text: @c 0x000000.
1738 *
1739 * This is the same palette plot_create() installs by default, so
1740 * calling it on a freshly-created plot is a no-op — its main use is
1741 * to switch back to the light theme after temporarily applying the
1742 * dark one.
1743 *
1744 * @param plot Target plot. NULL is a no-op.
1745 */
1746void plot_apply_theme_light(Plot* plot) {
1747 PLOT_LOG("[plot_apply_theme_light]: enter (plot=%p)", (void*)plot);
1748 if (!plot) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected