-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot-tf.html
96 lines (79 loc) · 2.42 KB
/
plot-tf.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>MagPhase Chart</title>
<style>
#graph-container {
display: flex;
flex-direction: column;
height: 447px;
}
.graph {
flex: 1 0 calc(47.5% - 10px);
min-width: 300px;
}
label,
.sysfont {
font-family: system-ui;
font-size: 11px;
}
#tf-container {
position: relative;
}
#graph-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
height: 5%;
position: absolute;
top: 0;
left: 5%;
right: 5%;
background-color: rgba(255, 255, 255, 0.8);
opacity: 0.7;
width: 88%;
z-index: 1;
}
#polarity-controls {
display: flex;
align-items: center;
}
#delay-controls,
#coherence-controls {
margin-right: 10px;
}
#graph-container {
position: relative;
z-index: 0;
}
</style>
</head>
<body>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<div id="tf-container">
<div id="graph-controls" style="clear:both;">
<input type="checkbox" id="polarityCheckbox" title="Invert polarity">
<label for="polarityCheckbox">Polarity</label>
<label for="delayRange">Delay (ms):</label>
<input type="range" id="delayRange" title="Set delay" min="-200" max="200" value="0" step="0.01">
<div id="delayText" class="text">0</div>
<label for="coherenceRange">Coherence (%):</label>
<input type="range" id="coherenceRange" min="0" max="100" value="0">
<div id="coherenceText" class="text">0</div>
<button id="resetButton" title="Reset parameters">Reset</button>
<button id="secondaryButton" title="Secondary trace">Secondary</button>
</div>
<div id="graph-container">
<div class="graph" id="magnitudeCoherenceGraph"></div>
<div class="graph" id="phaseGraph"></div>
</div>
</div>
<script>
// Your JavaScript code here
</script>
</body>
</html>