| 493 | } |
| 494 | |
| 495 | void ResetCtxForNextPlot(ImPlotContext* ctx) { |
| 496 | // reset the next plot/item data |
| 497 | ctx->NextPlotData.Reset(); |
| 498 | ctx->NextItemData.Reset(); |
| 499 | // reset labels |
| 500 | ctx->Annotations.Reset(); |
| 501 | ctx->Tags.Reset(); |
| 502 | // reset extents/fit |
| 503 | ctx->OpenContextThisFrame = false; |
| 504 | // reset digital plot items count |
| 505 | ctx->DigitalPlotItemCnt = 0; |
| 506 | ctx->DigitalPlotOffset = 0; |
| 507 | // nullify plot |
| 508 | ctx->CurrentPlot = nullptr; |
| 509 | ctx->CurrentItem = nullptr; |
| 510 | ctx->PreviousItem = nullptr; |
| 511 | } |
| 512 | |
| 513 | void ResetCtxForNextAlignedPlots(ImPlotContext* ctx) { |
| 514 | ctx->CurrentAlignmentH = nullptr; |
no test coverage detected