flightplotting 0.2.3__tar.gz → 0.2.4__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.3/flightplotting.egg-info → flightplotting-0.2.4}/PKG-INFO +2 -3
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/__init__.py +1 -1
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/plots.py +12 -9
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/traces.py +0 -1
- {flightplotting-0.2.3 → flightplotting-0.2.4/flightplotting.egg-info}/PKG-INFO +2 -3
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting.egg-info/requires.txt +1 -2
- {flightplotting-0.2.3 → flightplotting-0.2.4}/setup.cfg +2 -3
- {flightplotting-0.2.3 → flightplotting-0.2.4}/COPYING +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/MANIFEST.in +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/README.md +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/data/ColdDraftF3APlane.obj +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/data/__init__.py +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/model.py +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/templates.py +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting/titlerenderer.py +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting.egg-info/SOURCES.txt +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting.egg-info/dependency_links.txt +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/flightplotting.egg-info/top_level.txt +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/setup.py +0 -0
- {flightplotting-0.2.3 → flightplotting-0.2.4}/tests/test_plots.py +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flightplotting
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Tools for Plotting Flight Data in Plotly
|
|
5
5
|
Home-page: https://github.com/PyFlightCoach/FlightPlotting
|
|
6
6
|
Author: Thomas David
|
|
7
7
|
Author-email: thomasdavid0@gmail.com
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: COPYING
|
|
10
|
-
Requires-Dist: setuptools
|
|
11
|
-
Requires-Dist: plotly
|
|
12
10
|
Requires-Dist: numpy
|
|
13
11
|
Requires-Dist: pandas
|
|
12
|
+
Requires-Dist: plotly
|
|
14
13
|
Requires-Dist: pfc-geometry>=0.2.4
|
|
15
14
|
Requires-Dist: flightdata>=0.2.6
|
|
16
15
|
Requires-Dist: flightanalysis>=0.2.6
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
from flightplotting.plots import plotsec, plot_analysis, plotdtw, create_3d_plot, plot_regions
|
|
4
|
-
from flightplotting.traces import axestrace, trace3d, dtwtrace, vector, vectors, boxtrace, axis_rate_traces, colour_from_scale
|
|
4
|
+
from flightplotting.traces import axestrace, trace3d, dtwtrace, vector, vectors, boxtrace, axis_rate_traces, colour_from_scale, get_colour
|
|
@@ -15,6 +15,7 @@ from flightplotting.traces import (
|
|
|
15
15
|
)
|
|
16
16
|
|
|
17
17
|
from flightdata import State
|
|
18
|
+
from flightdata.base.labeling import get_appended_id
|
|
18
19
|
from geometry import Coord
|
|
19
20
|
from flightplotting.model import obj, OBJ
|
|
20
21
|
import numpy as np
|
|
@@ -99,10 +100,11 @@ def plotdtw(sec: State, manoeuvres: List[str], span=3, fig=None):
|
|
|
99
100
|
|
|
100
101
|
return fig
|
|
101
102
|
|
|
102
|
-
def plot_regions(st: State, lab_cols: list[str], span=3, colours=None, fig=None):
|
|
103
|
+
def plot_regions(st: State, lab_cols: list[str], span=3, colours=None, fig=None, **kwargs):
|
|
103
104
|
colours = px.colors.qualitative.Plotly if colours is None else colours
|
|
104
105
|
lab_cols = [lab_cols] if isinstance(lab_cols, str) else lab_cols
|
|
105
106
|
|
|
107
|
+
|
|
106
108
|
st = st.label(clabs=st.cumulative_labels(*lab_cols))
|
|
107
109
|
|
|
108
110
|
def get_base_label(clab):
|
|
@@ -118,21 +120,22 @@ def plot_regions(st: State, lab_cols: list[str], span=3, colours=None, fig=None)
|
|
|
118
120
|
|
|
119
121
|
traces = []
|
|
120
122
|
for i, (k, seg) in enumerate(st.split_labels('clabs').items()):
|
|
121
|
-
|
|
123
|
+
if len(seg) < 3:
|
|
124
|
+
continue
|
|
125
|
+
blab, id = get_appended_id(k)
|
|
122
126
|
if blab not in colmap:
|
|
123
127
|
colmap[blab] = colours[len(colmap) % len(colours)]
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
traces += ribbon(
|
|
129
|
+
seg, span, colmap[blab], name=blab,
|
|
130
|
+
showlegend=int(id)==0,
|
|
131
|
+
**kwargs[blab] if blab in kwargs else {}
|
|
132
|
+
)
|
|
130
133
|
traces.append(go.Scatter3d(
|
|
131
134
|
x=seg.pos.x,
|
|
132
135
|
y=seg.pos.y,
|
|
133
136
|
z=seg.pos.z,
|
|
134
137
|
mode='lines',
|
|
135
|
-
line=dict(width=
|
|
138
|
+
line=dict(width=0, color=colmap[blab]),
|
|
136
139
|
name=k,
|
|
137
140
|
showlegend=False
|
|
138
141
|
))
|
|
@@ -254,7 +254,6 @@ def ribbon(sec: State, span: float, color, **kwargs):
|
|
|
254
254
|
_ks = np.array(range(2, len(points) -1 , 2))
|
|
255
255
|
_k = _npinterzip(_ks, _ks) # 2 2 4 4 6 6
|
|
256
256
|
|
|
257
|
-
|
|
258
257
|
return [go.Mesh3d(
|
|
259
258
|
x=points.x, y=points.y, z=points.z, i=_i, j=_j, k=_k,
|
|
260
259
|
intensitymode="cell",
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flightplotting
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Tools for Plotting Flight Data in Plotly
|
|
5
5
|
Home-page: https://github.com/PyFlightCoach/FlightPlotting
|
|
6
6
|
Author: Thomas David
|
|
7
7
|
Author-email: thomasdavid0@gmail.com
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: COPYING
|
|
10
|
-
Requires-Dist: setuptools
|
|
11
|
-
Requires-Dist: plotly
|
|
12
10
|
Requires-Dist: numpy
|
|
13
11
|
Requires-Dist: pandas
|
|
12
|
+
Requires-Dist: plotly
|
|
14
13
|
Requires-Dist: pfc-geometry>=0.2.4
|
|
15
14
|
Requires-Dist: flightdata>=0.2.6
|
|
16
15
|
Requires-Dist: flightanalysis>=0.2.6
|
|
@@ -5,15 +5,14 @@ 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.4
|
|
9
9
|
url = https://github.com/PyFlightCoach/FlightPlotting
|
|
10
10
|
|
|
11
11
|
[options]
|
|
12
12
|
install_requires =
|
|
13
|
-
setuptools
|
|
14
|
-
plotly
|
|
15
13
|
numpy
|
|
16
14
|
pandas
|
|
15
|
+
plotly
|
|
17
16
|
pfc-geometry>=0.2.4
|
|
18
17
|
flightdata>=0.2.6
|
|
19
18
|
flightanalysis>=0.2.6
|
|
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
|