Skip to content

Plot a shape #2010

Jul 6, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

I found a way pretty simple but I dont know if it's a good practice, using "PolygonAnnotation"...

var tmp = new PlotModel();
var s1 = new LineSeries
            {
                StrokeThickness = 1,
                MarkerSize = 0,
                MarkerStroke = OxyColors.IndianRed,
                MarkerType = MarkerType.Plus,
                Color = OxyColor.FromArgb(155, 205, 92, 92),                
            };

var Event = new PolygonAnnotation();

Event.Layer = AnnotationLayer.BelowAxes;
Event.StrokeThickness = 0;
Event.LineStyle = LineStyle.Automatic;

for (int i = 0; i < list[0].Count; i++)
            {
                s1.Points.Add(new DataPoint(list[0][i], list[1][i]));
    …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@VisualMelon
Comment options

@kinnetekLluis
Comment options

@VisualMelon
Comment options

@kinnetekLluis
Comment options

@VisualMelon
Comment options

Answer selected by kinnetekLluis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants