How to move a signal plot to the top so it is drawn above other lines #2421
Answered
by
swharden
LittleLittleWind
asked this question in
Questions
-
ScottPlot Version: 4.1 Operating System: Windows Application Type: WinForms Question: How can I reorder lines in a signal plot?For example, I want to put green line on top, how can I do? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
swharden
Feb 26, 2023
Replies: 1 comment 1 reply
-
This code should move a plottable to the top of the render stack: var sig1 = formsPlot1.Plot.AddSignal(myData1);
var sig2 = formsPlot1.Plot.AddSignal(myData2);
var sig3 = formsPlot1.Plot.AddSignal(myData3);
formsPlot1.Plot.MoveLast(sig1); // the last plottable is rendered on top |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
swharden
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @LittleLittleWind,
This code should move a plottable to the top of the render stack:
https://scottplot.net/doc/v4/api/ScottPlot.Plot.html#ScottPlot_Plot_MoveLast_ScottPlot_Plottable_IPlottable_