Repository navigation
Expand file tree
/
Copy pathEnums.cs
More file actions
213 lines (155 loc) · 4.32 KB
/
Copy pathEnums.cs
File metadata and controls
213 lines (155 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace MatplotlibCS.PlotItems
{
/// <summary>
/// [ '-' | '--' | '-.' | ':' | 'steps' | ...]
/// </summary>
public enum LineStyle
{
[EnumMember(Value = "-")]
Solid,
[EnumMember(Value = "--")]
Dashed,
[EnumMember(Value = "steps")]
Steps,
[EnumMember(Value = ":")]
Dotted,
[EnumMember(Value = "-.")]
DashDotted
}
/// <summary>
/// Marker type
/// </summary>
public enum Marker
{
[EnumMember(Value = "")]
None,
[EnumMember(Value = ".")]
Point,
[EnumMember(Value = ",")]
Pixel,
[EnumMember(Value = "o")]
Circle,
[EnumMember(Value = "v")]
TriangleDown,
[EnumMember(Value = "^")]
TriangleUp,
[EnumMember(Value = "<")]
TriangleLeft,
[EnumMember(Value = ">")]
TriangleRight,
[EnumMember(Value = "1")]
TriDown,
[EnumMember(Value = "2")]
TriUp,
[EnumMember(Value = "3")]
TriLeft,
[EnumMember(Value = "4")]
TriRight,
[EnumMember(Value = "8")]
Octagon,
[EnumMember(Value = "s")]
Square,
[EnumMember(Value = "p")]
Pentagon,
[EnumMember(Value = "*")]
Star,
[EnumMember(Value = "h")]
Hexagon1,
[EnumMember(Value = "+")]
Plus,
[EnumMember(Value = "x")]
X,
[EnumMember(Value = "D")]
Diamond,
[EnumMember(Value = "|")]
Vline,
[EnumMember(Value = "_")]
Hline,
[EnumMember(Value = "TICKLEFT")]
Tickleft,
[EnumMember(Value = "TICKRIGHT")]
Tickright,
[EnumMember(Value = "TICKUP")]
Tickup,
[EnumMember(Value = "TICKDOWN")]
Tickdown,
[EnumMember(Value = "CARETLEFT")]
Caretleft,
[EnumMember(Value = "CARETRIGHT")]
Caretright,
[EnumMember(Value = "CARETUP")]
Caretup,
[EnumMember(Value = "CARETDOWN")]
Caretdown
}
/// <summary>
/// Colors
/// </summary>
public class Color
{
[JsonProperty(PropertyName = "value")]
public string Value { get; private set; }
public Color(string hexColor)
{
Value = hexColor;
}
public static implicit operator Color(string hexColor)
{
return new Color(hexColor);
}
public static Color Blue = new Color("b");
public static Color Black = new Color("k");
public static Color Red = new Color("r");
public static Color Yellow = new Color("y");
public static Color Cyan = new Color("c");
public static Color Green = new Color("g");
public static Color White = new Color("w");
public static Color Magenta = new Color("m");
public static Color None = new Color("None");
}
public class TimeTickFormat
{
[JsonProperty(PropertyName = "value")]
public string Value { get; private set; }
public TimeTickFormat(string formatString)
{
Value = formatString;
}
public static implicit operator TimeTickFormat(string formatString)
{
return new TimeTickFormat(formatString);
}
public static TimeTickFormat HHMMSS = new TimeTickFormat("%H:%M:%S");
public static TimeTickFormat HHMM = new TimeTickFormat("%H:%M");
public static TimeTickFormat DateOnly = new TimeTickFormat("%Y-%m-%d");
public static TimeTickFormat DateAndTime = new TimeTickFormat("%Y-%m-%d %H:%M:%S");
}
/// <summary>
/// Which grid lines to show
/// </summary>
public enum GridWhich
{
/// <summary>
/// Show both grids
/// </summary>
[EnumMember(Value = "both")]
Both,
/// <summary>
/// Show only minor grid
/// </summary>
[EnumMember(Value = "minor")]
Minor,
/// <summary>
/// Show only major grid
/// </summary>
[EnumMember(Value = "major")]
Major
}
}