flightplotting 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flightplotting-0.2.0/flightplotting.egg-info → flightplotting-0.2.1}/PKG-INFO +1 -1
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/__init__.py +1 -1
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/plots.py +6 -6
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/traces.py +1 -1
- {flightplotting-0.2.0 → flightplotting-0.2.1/flightplotting.egg-info}/PKG-INFO +1 -1
- {flightplotting-0.2.0 → flightplotting-0.2.1}/setup.cfg +1 -1
- {flightplotting-0.2.0 → flightplotting-0.2.1}/COPYING +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/MANIFEST.in +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/README.md +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/data/ColdDraftF3APlane.obj +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/data/__init__.py +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/model.py +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/templates.py +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting/titlerenderer.py +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting.egg-info/SOURCES.txt +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting.egg-info/dependency_links.txt +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting.egg-info/requires.txt +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/flightplotting.egg-info/top_level.txt +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/setup.py +0 -0
- {flightplotting-0.2.0 → flightplotting-0.2.1}/tests/test_plots.py +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
from flightplotting.plots import plotsec, plot_analysis, plotdtw, create_3d_plot
|
|
4
|
-
from flightplotting.traces import axestrace, trace3d, dtwtrace, vector, vectors, boxtrace
|
|
4
|
+
from flightplotting.traces import axestrace, trace3d, dtwtrace, vector, vectors, boxtrace, axis_rate_traces
|
|
@@ -72,8 +72,9 @@ def plotsec(secs: Union[State, list[State]], scale=5, nmodels=0, fig=None,
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
def plotdtw(sec: State, manoeuvres: List[str], span=3):
|
|
76
|
-
fig
|
|
75
|
+
def plotdtw(sec: State, manoeuvres: List[str], span=3, fig=None):
|
|
76
|
+
if fig is None:
|
|
77
|
+
fig = go.Figure(layout=go.Layout(template="flight3d+judge_view"))
|
|
77
78
|
|
|
78
79
|
traces = []#tiptrace(sec, span)
|
|
79
80
|
|
|
@@ -94,10 +95,9 @@ def plotdtw(sec: State, manoeuvres: List[str], span=3):
|
|
|
94
95
|
except Exception as ex:
|
|
95
96
|
pass
|
|
96
97
|
print("no data for manoeuvre {}, {}".format(name, ex))
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
)
|
|
98
|
+
|
|
99
|
+
fig.add_traces(traces)
|
|
100
|
+
|
|
101
101
|
|
|
102
102
|
return fig
|
|
103
103
|
|
|
@@ -148,7 +148,7 @@ def dtwtrace(sec: State, elms, showlegend = True):
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
def axis_rate_traces(sts: dict[State], cols='pqr'):
|
|
151
|
+
def axis_rate_traces(sts: dict[str, State], cols='pqr'):
|
|
152
152
|
cols = px.colors.qualitative.D3
|
|
153
153
|
traces = []
|
|
154
154
|
dashes = ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']
|
|
@@ -5,7 +5,7 @@ author_email = thomasdavid0@gmail.com
|
|
|
5
5
|
description = Tools for Plotting Flight Data in Plotly
|
|
6
6
|
long_description = file: README.md
|
|
7
7
|
long_description_content_type = text/markdown
|
|
8
|
-
version = 0.2.
|
|
8
|
+
version = 0.2.1
|
|
9
9
|
url = https://github.com/PyFlightCoach/FlightPlotting
|
|
10
10
|
|
|
11
11
|
[options]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|