Skip to content

How to move a signal plot to the top so it is drawn above other lines #2421

Discussion options

You must be logged in to vote

Hi @LittleLittleWind,

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

https://scottplot.net/doc/v4/api/ScottPlot.Plot.html#ScottPlot_Plot_MoveLast_ScottPlot_Plottable_IPlottable_

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Graat
Comment options

Answer selected by swharden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2411 on February 26, 2023 20:34.