-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlotParameters.cs
More file actions
61 lines (56 loc) · 1.33 KB
/
PlotParameters.cs
File metadata and controls
61 lines (56 loc) · 1.33 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
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Where1.WPlot
{
public class PlotParameters
{
public object data; //It has to be able to accept diverse data, e.g. OHLC in addition to just coordinates
public object errorData;
public bool hasErrorData;
public Dictionary<string, object> metaData; //Ditto
public DrawSettings drawSettings;
}
public struct DrawSettings
{
public PlotType type;
public HistogramType? histogramType;
public System.Drawing.Color colour;
public bool drawLine;
public ScottPlot.MarkerShape markerShape;
public string label;
public bool drawLinearRegression;
public bool polarCoordinates;
public bool dateXAxis;
public bool valid;
}
public enum PlotType
{
scatter,
signal,
bar,
histogram,
vertical_line,
horizontal_line,
vertical_span,
horizontal_span,
box_whisker,
function,
bar_grouped,
}
public enum WaveType
{
sine,
square
}
[Flags]
public enum HistogramType
{
count = 0b0, //0
fraction = 0b1,//1
density = 0b10,//2
cumulative = 0b100,//4
}
}