@@ -19,53 +19,11 @@ public static PlotModel EllipseAnnotation()
19
19
var model = new PlotModel { Title = "EllipseAnnotation" } ;
20
20
model . Axes . Add ( new LinearAxis { Position = AxisPosition . Bottom } ) ;
21
21
model . Axes . Add ( new LinearAxis { Position = AxisPosition . Left } ) ;
22
- model . Annotations . Add ( new EllipseAnnotation
23
- {
24
- X = 20 ,
25
- Y = 60 ,
26
- Width = 20 ,
27
- Height = 15 ,
28
- Text = "EllipseAnnotation" ,
29
- ToolTip = "EllipseAnnotation" ,
30
- TextRotation = 10 ,
31
- Fill = OxyColor . FromAColor ( 99 , OxyColors . Green ) ,
32
- Stroke = OxyColors . Black ,
33
- StrokeThickness = 2
34
- } ) ;
22
+ model . Annotations . Add ( new EllipseAnnotation { X = 20 , Y = 60 , Width = 20 , Height = 15 , Text = "EllipseAnnotation" , TextRotation = 10 , Fill = OxyColor . FromAColor ( 99 , OxyColors . Green ) , Stroke = OxyColors . Black , StrokeThickness = 2 } ) ;
35
23
36
- model . Annotations . Add ( new EllipseAnnotation
37
- {
38
- X = 20 ,
39
- Y = 20 ,
40
- Width = 20 ,
41
- Height = 20 ,
42
- Fill = OxyColor . FromAColor ( 99 , OxyColors . Green ) ,
43
- ToolTip = "Green" ,
44
- Stroke = OxyColors . Black ,
45
- StrokeThickness = 2
46
- } ) ;
47
- model . Annotations . Add ( new EllipseAnnotation
48
- {
49
- X = 30 ,
50
- Y = 20 ,
51
- Width = 20 ,
52
- Height = 20 ,
53
- Fill = OxyColor . FromAColor ( 99 , OxyColors . Red ) ,
54
- ToolTip = "Red" ,
55
- Stroke = OxyColors . Black ,
56
- StrokeThickness = 2
57
- } ) ;
58
- model . Annotations . Add ( new EllipseAnnotation
59
- {
60
- X = 25 ,
61
- Y = 30 ,
62
- Width = 20 ,
63
- Height = 20 ,
64
- Fill = OxyColor . FromAColor ( 99 , OxyColors . Blue ) ,
65
- ToolTip = "Blue" ,
66
- Stroke = OxyColors . Black ,
67
- StrokeThickness = 2
68
- } ) ;
24
+ model . Annotations . Add ( new EllipseAnnotation { X = 20 , Y = 20 , Width = 20 , Height = 20 , Fill = OxyColor . FromAColor ( 99 , OxyColors . Green ) , Stroke = OxyColors . Black , StrokeThickness = 2 } ) ;
25
+ model . Annotations . Add ( new EllipseAnnotation { X = 30 , Y = 20 , Width = 20 , Height = 20 , Fill = OxyColor . FromAColor ( 99 , OxyColors . Red ) , Stroke = OxyColors . Black , StrokeThickness = 2 } ) ;
26
+ model . Annotations . Add ( new EllipseAnnotation { X = 25 , Y = 30 , Width = 20 , Height = 20 , Fill = OxyColor . FromAColor ( 99 , OxyColors . Blue ) , Stroke = OxyColors . Black , StrokeThickness = 2 } ) ;
69
27
return model ;
70
28
}
71
29
}
0 commit comments