* @brief Toggle the legend on / off. * * Enables or disables the rendering of the legend box in the top-right * corner of the plot. The legend lists one row per series, each with * the series' colour swatch and its label (or `(series)` when the * series was added with a NULL label). * * @param plot Target plot. NULL is a no-op. * @param show true to render the legend; false to hide it. *
| 652 | * Ownership semantics: the plot retains ownership of the new buffers; |
| 653 | * the caller may free its own copies of @p xData / @p yData |
| 654 | * immediately after the call returns. On failure neither the old nor |
| 655 | * the new data is leaked. |
| 656 | * |
| 657 | * @param plot Target plot. Must be non-NULL. |
| 658 | * @param seriesIndex Index of the series to update. Must be in range. |
| 659 | * @param xData Optional new x values; NULL means "use implicit |
| 660 | * 0..dataSize-1". |
| 661 | * @param yData New y values; must point to @p dataSize floats. |
| 662 | * @param dataSize Number of points in the new arrays. Must be > 0. |
| 663 | * |
| 664 | * @return true on success; false on bad input (NULL plot/yData, zero |
| 665 | * dataSize, out-of-range index) or on allocation failure (the |
| 666 | * previous data is preserved in that case). |
nothing calls this directly
no outgoing calls
no test coverage detected