Skip to content

implement DragEnabled on SignalPlotXY #1002

@breakwinz

Description

@breakwinz

Hi. It would be very useful if there was an option to enable dragging on a signalplotXY.
For example im drawing several signalplotsXY on a single formsplot. I am then calculating the standard deviation Y for every point of X and drawing a 1 standard deviation signalPlotXY in a thick and clear line.

It would be quite useful if it were possible to enable a drag feature on a signalplot in horizontal or vertical direction as such:

var std_line_positive = FormsPlot1.Plot.AddSignalXY(x_std[], y_positive_std[]);
var std_line_negative = FormsPlot1.Plot.AddSignalXY(x_std[], y_negative_std[])

std_line_positive.DragEnabledVertical = true; //<---- doesnt exist
std_line_negative.DragEnabledVertical = true; //<---- doesnt exist

this would allow the user to click and drag the two signalplot lines and "all it does" in the background is shifting the y-values up and down. Similarly if there is DragEnabledHorizontal then the x values can be shifted up and down (left and right on graph)

Here is a beautiful paint image to explain. Bottom and top brown lines are the standard deviation i have calculated for all the signalplots in the middle. I want to be able to shift them up and down graphically

image

Is this something that would be easy/difficult to implement?

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions