geglättete Linien, HTML Export
This commit is contained in:
parent
a584827133
commit
32a5b4d19b
@ -6,6 +6,7 @@ ___
|
||||
|
||||
`pip install plotly`
|
||||
`pip install pandas`
|
||||
`pip install scipy`
|
||||
|
||||
## Dokumentation
|
||||
|
||||
|
||||
71
smooth.html
Normal file
71
smooth.html
Normal file
File diff suppressed because one or more lines are too long
@ -3,6 +3,9 @@ from lib2to3.pgen2.pgen import DFAState
|
||||
import plotly.express as px
|
||||
import plotly.io as pio
|
||||
import plotly.graph_objects as go
|
||||
import numpy
|
||||
import pandas
|
||||
from scipy import signal
|
||||
|
||||
filename = 'example_data/TachymeterTable_103.csv'
|
||||
|
||||
@ -94,7 +97,12 @@ tachies = [Tachymeter(i, data[0]) for i in data[1:]]
|
||||
|
||||
# pio.show(fig)
|
||||
|
||||
fig = px.line(x=t.index, y=t.SOG, title="SOG")
|
||||
# fig = px.line(x=t.index, y=t.SOG, title="SOG")
|
||||
|
||||
fig = go.Figure()
|
||||
fig.add_trace(go.Scatter(x=t.index, y=t.SOG, mode='lines', name='SOG'))
|
||||
fig.add_trace(go.Scatter(x=t.index, y=signal.savgol_filter(t.SOG, 53, 3), mode='lines', name='Smooth SOG'))
|
||||
fig.write_html("smooth.html")
|
||||
fig.show()
|
||||
|
||||
#df = dict( {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user