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

Function plot_get_xlim

plot/plot.c:2170–2183  ·  view source on GitHub ↗

* @brief Read back the effective x-axis range that rendering will use. * * Reports the pinned range if `plot_set_xlim` was called, otherwise the range * auto-computed from the series data (with the same flat-data widening the * renderer applies). Lets you inspect or persist the scale without a graphics * context. * * @param plot Plot to query. Must be non-NULL. * @param outMin Receives t

Source from the content-addressed store, hash-verified

2168 ok &= fputc(',', f) != EOF;
2169 }
2170 if (r < ser->dataSize) {
2171 if (ser->xData) {
2172 ok &= fprintf(f, "%.9g", (double)ser->xData[r]) >= 0;
2173 }
2174 else {
2175 ok &= fprintf(f, "%zu", r) >= 0;
2176 }
2177 }
2178 }
2179 if (r < ser->dataSize) {
2180 ok &= fprintf(f, ",%.9g", (double)ser->yData[r]) >= 0;
2181 }
2182 else {
2183 ok &= fputc(',', f) != EOF;
2184 }
2185 }
2186 ok &= fputc('\n', f) != EOF;

Callers

nothing calls this directly

Calls 1

compute_extentsFunction · 0.85

Tested by

no test coverage detected