* @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
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected