Skip to content

Arrow: allow position modification #2673

@MyZQL

Description

@MyZQL

I want to dynamically adjust the postion of an arrow, but its Base and Tip are read-only fields.

How about making them editable?

var plotCtrl = new ScottPlot.Plot();
var myArrow = plotCtrl.Plot.AddArrow(xBase, yBase, xTip, yTip);
plotCtrl.Reflesh();
myArrow.Base.X = xBaseNew;
myArrow.Base.Y = yBaseNew;
myArrow.Tip.X = xTipNew;
myArrow.Tip.Y = yTipNew;
plotCtrl.Reflesh();

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