-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimulation1.html
More file actions
78 lines (62 loc) · 2.14 KB
/
simulation1.html
File metadata and controls
78 lines (62 loc) · 2.14 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
<!--<style>
body {
background-color: #f2f3f4;
}
#inp_fields {
margin: 50px;
float: left;
overflow: hidden;
position: relative;
padding: 10px;
}
div.lineplot {
margin-top: 50px;
width: 400px;
height: 400px;
border: 2px solid black;
padding: 8px;
background-color: white;
}
div.inputs {
display: grid;
grid-template-columns: max-content max-content max-content;
grid-gap: 5px;
}
div.buttons {
margin-top: 40px;
}
button {
display: block;
height: 40px;
text-align: center;
width: 50%;
float: left;
color: white;
background-color: #341575;
}
</style>-->
<div id="inp_fields">
<h1>Current Injection</h1>
<div class="inputs">
<label>Amplitude: </label>
<input type="number" min="0" data-variable="ic.amp"><label> nA </label>
<label>Starting Delay: </label>
<input type="number" min="0" step="0.1" data-variable="ic.del"><label> ms </label>
<label>Duration: </label>
<input type="number" min="0" step="0.1" data-variable="ic.dur"><label> ms </label>
</div>
<h1>Simulation</h1>
<div class="inputs">
<label>Initial Voltage: </label>
<input type="number" data-variable="vinit"><label> mV </label>
<label>Run Time: </label>
<input type="number" min="0" data-variable="tstop"><label> ms </label>
</div>
<div class="buttons">
<button data-onclick="go()">GO</button>
<button data-onclick="_save_sim_data()">Save Data</button>
</div>
</div>
<div class="lineplot" data-x-var="h.t" data-y-var="seg.v" data-xlab="time (ms)" data-legendlabs="voltage (mV)" style="margin-top:50px; width:30vw; height:30vh; float:left"></div>
<div class="lineplot" data-x-var="h.t" data-y-var="seg.hh.m;seg.hh.n;seg.hh.h" data-xlab="time (ms)" data-legendlabs="m;n;h" data-xlim="-1;1" data-ylim="-1;1" style="margin-top:50px; width:300px; height:300px; float:right"></div>
<div class="lineplot" data-x-var="seg.hh.m" data-y-var="seg.hh.n" data-xlab="m" data-ylab="n" style="margin-top:50px; width:300px; height:300px; float:left"></div>