-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgph-leading-area.tex
41 lines (40 loc) · 1.63 KB
/
gph-leading-area.tex
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
\begin{tikzpicture}
\begin{axis}[ xlabel=Distance in SS
, ylabel=Time in SS
, x unit=km
, y unit=seconds
, width=0.8\textwidth
, title=Track log evaluation for leading coefficient calculation
, xtick={ 0, 10, 20, 30, 40, 50, 62 }
]
\addplot[ green
, y filter/.code={\pgfmathparse{#1*100}\pgfmathresult}
] table[col sep=comma] {leading-area-green.csv};
\addplot[ orange
, y filter/.code={\pgfmathparse{#1*100}\pgfmathresult}
] table[col sep=comma] {leading-area-orange-1.csv};
\addplot[ orange
, y filter/.code={\pgfmathparse{#1*100}\pgfmathresult}
] table[col sep=comma] {leading-area-orange-2.csv};
\addplot[ black
, y filter/.code={\pgfmathparse{#1*80-200}\pgfmathresult}
] table[col sep=comma] {leading-area-black.csv};
\addplot[ blue
, y filter/.code={\pgfmathparse{#1*80}\pgfmathresult}
] table[col sep=comma] {leading-area-blue.csv};
\addplot[ green
, dashed
, y filter/.code={\pgfmathparse{#1*100}\pgfmathresult}
] table[col sep=comma] {leading-area-green-dotted.csv};
\addplot[ orange
, dashed
, y filter/.code={\pgfmathparse{#1*100}\pgfmathresult}
] table[col sep=comma] {leading-area-orange-dotted.csv};
\end{axis}
\end{tikzpicture}
% NOTE: I used excel to generate y=x+max(0, e) where e is random ± 5.
% In the A column, rows 0 .. 62 with values 0 .. 62
% In B1
% =A1+MAX(0, RANDBETWEEN(-5,5))
% In B2:B62
% =MAX(B1, A2+MAX(0, RANDBETWEEN(-5,5)))