Visual and performative overhaul
This commit is contained in:
11
wave/plot.js
11
wave/plot.js
@@ -5,6 +5,7 @@ const chart = new Chart("chart", {
|
||||
label: "Auslenkung",
|
||||
borderColor: "teal",
|
||||
backgroundColor: "teal",
|
||||
tension: 0.5
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -13,6 +14,16 @@ const chart = new Chart("chart", {
|
||||
x: {
|
||||
display: false
|
||||
}
|
||||
},
|
||||
elements: {
|
||||
point: {
|
||||
radius: 0
|
||||
}
|
||||
},
|
||||
plugins: {
|
||||
legend: {
|
||||
display: false
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -33,7 +33,7 @@ freq2 = document.querySelector("#freq")
|
||||
freq2.addEventListener("input", create_proxy(inp_update))
|
||||
document.body.addEventListener("wheel", create_proxy(scroll_update))
|
||||
|
||||
sampling_frequency = 1920 / 10 * 4
|
||||
sampling_frequency = 140
|
||||
seconds = 2
|
||||
time = np.linspace(0, seconds, int(seconds * sampling_frequency))
|
||||
|
||||
|
||||
BIN
wave/wave.png
BIN
wave/wave.png
Binary file not shown.
|
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 182 KiB |
Reference in New Issue
Block a user