Skip to content

Commit

Permalink
Changes for review
Browse files Browse the repository at this point in the history
  • Loading branch information
wbrannon committed Jul 1, 2024
1 parent abe075f commit cb8026e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions python/fusion_engine_client/analysis/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,13 +1148,9 @@ def plot_gnss_azimuth_elevation(self):

# Set up the figure.
figure = make_subplots(
rows=4, cols=1, print_grid=False, shared_xaxes=True,
rows=2, cols=1, print_grid=False, shared_xaxes=True,
subplot_titles=["Azimuth Angle",
"Elevation Angle", None, None],
specs=[[{'rowspan': 2}],
[None],
[{'rowspan': 2}],
[None]])
"Elevation Angle"])
figure['layout'].update(showlegend=True, modebar_add=['v1hovermode'])
figure['layout']['xaxis1'].update(title=self.p1_time_label, showticklabels=True)
figure['layout']['xaxis2'].update(title=self.p1_time_label, showticklabels=True)
Expand All @@ -1168,7 +1164,7 @@ def plot_gnss_azimuth_elevation(self):
svs = sorted(list(data_by_sv.keys()))
color_by_sv = self._assign_colors(svs)

for i, sv in enumerate(svs[::-1]):
for sv in svs:
name = satellite_to_string(sv, short=False)
system = get_system(sv)
sv_data = data_by_sv[sv]
Expand All @@ -1195,7 +1191,7 @@ def plot_gnss_azimuth_elevation(self):
marker={'color': color_by_sv[sv], 'symbol': 'circle', 'size': 8},
showlegend=False,
legendgroup=name),
3, 1)
2, 1)
indices_by_system[system].append(len(figure.data) - 1)

# Add signal type selection buttons.
Expand All @@ -1218,7 +1214,7 @@ def plot_gnss_azimuth_elevation(self):
'yanchor': 'top'
}]

self._add_figure(name='satellite_azimuth_elevation', figure=figure, title='Satellite Azimuth & Elevation')
self._add_figure(name='gnss_azimuth_elevation', figure=figure, title='GNSS Azimuth & Elevation Vs. Time')

def plot_gnss_signal_status(self):
filename = 'gnss_signal_status'
Expand Down

0 comments on commit cb8026e

Please sign in to comment.