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

Function plot_autoscale

plot/plot.c:2146–2153  ·  view source on GitHub ↗

* @brief Revert both axes to automatic scaling. * * Clears any range previously pinned with `plot_set_xlim` / `plot_set_ylim`, * so the next render auto-scales to the data again. NULL is a no-op. * * @param plot Plot to reset. May be NULL. */

Source from the content-addressed store, hash-verified

2144 if (!sharedX) {
2145 ok &= fputs(s ? ",x_" : "x_", f) >= 0;
2146 ok &= plot_csv_write_text(f, lbl, true);
2147 }
2148 ok &= fputc(',', f) != EOF;
2149 ok &= plot_csv_write_text(f, lbl, false);
2150 }
2151 ok &= fputc('\n', f) != EOF;
2152
2153 /* Rows. */
2154 for (size_t r = 0; r < rows && ok; ++r) {
2155 if (sharedX) {
2156 /* x column uses implicit index unless the series have their own. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected