* @brief Remove the series at @p seriesIndex, shifting later series left. * * Frees the targeted series' xData, yData, and label buffers, then * compacts the series table so that any series that were stored at a * higher index get shifted down by one. The plot's seriesCount is * decremented to reflect the removal. * * @param plot Target plot. Must be non-NULL. * @param seriesIndex I
| 506 | * may free its own buffers and label string immediately after this |
| 507 | * call returns. |
| 508 | * - On any failure all partial allocations are rolled back and the |
| 509 | * plot is left untouched. |
| 510 | * |
| 511 | * @param plot Target plot. Must be non-NULL. |
| 512 | * @param xData Optional x values. NULL means "use 0..dataSize-1". |
| 513 | * When non-NULL it must point to @p dataSize floats. |
| 514 | * @param yData Y values. Must be non-NULL and point to @p dataSize |
| 515 | * floats. |
| 516 | * @param dataSize Number of points. Must be > 0. |
| 517 | * @param label Legend label; deep-copied. NULL is allowed and means |
| 518 | * "no label". |
| 519 | * @param pltype Drawing style (PLTYPE_LINE, PLTYPE_BAR, PLTYPE_SCATTER, |
| 520 | * PLTYPE_PIE, PLTYPE_HISTOGRAM). |
| 521 | * @param color Stroke / fill colour for this series. |
| 522 | * |
| 523 | * @return Zero-based index of the new series on success, or -1 on bad |
| 524 | * input (NULL plot/yData, zero dataSize), if the plot already |
| 525 | * holds PLOT_MAX_SERIES series, or on allocation failure. |
| 526 | * |
| 527 | * @warning Indices returned by this function are only stable until |
| 528 | * plot_remove_series() is called; removing a series shifts |
| 529 | * every later series down by one. |
nothing calls this directly
no outgoing calls
no test coverage detected