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

Function plot_set_xlim

plot/plot.c:2099–2109  ·  view source on GitHub ↗

* @brief Pin the x-axis to a fixed [min, max] range. * * By default each axis auto-scales to the data on every render. Pinning a * range keeps the scale constant — essential for dashboards that compare * snapshots over time, for pinning a bar chart's baseline to 0, or for * zooming/clipping. The range affects every subsequent `plot_draw` and * `plot_export_image`. Data points outside the ran

Source from the content-addressed store, hash-verified

2097 PLOT_LOG("[plot_export_csv]: bad arg -> false");
2098 return false;
2099 }
2100 if (plot->seriesCount == 0) {
2101 PLOT_LOG("[plot_export_csv]: no data -> false");
2102 return false;
2103 }
2104
2105 FILE* f = plot_fopen_utf8(filename, "w");
2106 if (!f) {
2107 PLOT_LOG("[plot_export_csv]: cannot open %s -> false", filename);
2108 return false;
2109 }
2110
2111 /* Length of the longest series == number of rows. */
2112 size_t rows = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected