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

Function plot_series_max

plot/plot.c:1680–1704  ·  view source on GitHub ↗

* @brief Maximum y of the series at @p index. * * Linear scan analogous to plot_series_min(); writes the largest * yData value of the targeted series into @p *out. The function is * O(n) in the series length. * * @param plot Plot to query. Must be non-NULL. * @param index Zero-based series index. Must be in range. * @param out Receives the maximum on success. Must be non-NULL. * * @re

Source from the content-addressed store, hash-verified

1678bool plot_set_series_type(Plot* plot, size_t index, PlotType type) {
1679 PLOT_LOG("[plot_set_series_type]: enter (plot=%p, index=%zu, type=%d)", (void*)plot, index, (int)type);
1680 if (!plot || index >= plot->seriesCount) {
1681 PLOT_LOG("[plot_set_series_type]: bad arg or OOR -> false");
1682 return false;
1683 }
1684
1685 plot->series[index].pltype = type;
1686 PLOT_LOG("[plot_set_series_type]: exit -> true");
1687
1688 return true;
1689}
1690
1691
1692/**
1693 * @brief Apply the built-in dark theme.
1694 *
1695 * Sets the five chrome colours in one call:
1696 * - background: @c 0x101418 (near-black slate),
1697 * - grid lines: @c 0x202830 (dim grey),
1698 * - axes & text: @c 0xC8D2DC (off-white),
1699 * - legend background: @c 0x18202A (slightly lighter slate),
1700 * - legend text: @c 0xC8D2DC.
1701 *
1702 * Series colours are untouched, so high-saturation series colours
1703 * usually look great on top of this theme. Use plot_apply_theme_light()
1704 * for the inverse, or plot_set_colors() to install your own palette.
1705 *
1706 * @param plot Target plot. NULL is a no-op.
1707 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected