Skip to content

Commit 6aeffff

Browse files
Fix overlay_measurement calls
1 parent ce36b65 commit 6aeffff

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: python/nyx_space/plots/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818

1919
from .gauss_markov import plot_gauss_markov
20-
from .od import plot_covar, plot_estimates, overlay_measurements
20+
from .od import plot_covar, plot_estimates, plot_measurements, overlay_measurements
2121
from .traj import plot_traj, plot_ground_track, plot_traj_errors
2222

2323
__all__ = [
@@ -27,5 +27,6 @@
2727
"plot_traj",
2828
"plot_traj_errors",
2929
"plot_ground_track",
30+
"plot_measurements",
3031
"overlay_measurements",
3132
]

Diff for: python/nyx_space/plots/od.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ def plot_estimates(
251251
if msr_df is not None:
252252
# Plot the measurements on both plots
253253
pos_fig = overlay_measurements(
254-
msr_df, title, time_col_name, fig=pos_fig, show=False
254+
pos_fig, msr_df, title, time_col_name, show=False
255255
)
256256

257257
vel_fig = overlay_measurements(
258-
msr_df, title, time_col_name, fig=vel_fig, show=False
258+
vel_fig, msr_df, title, time_col_name, show=False
259259
)
260260

261261
if html_out:
@@ -458,11 +458,11 @@ def plot_covar(
458458
if msr_df is not None:
459459
# Plot the measurements on both plots
460460
pos_fig = overlay_measurements(
461-
msr_df, title, time_col_name, fig=pos_fig, show=False
461+
pos_fig, msr_df, title, time_col_name, show=False
462462
)
463463

464464
vel_fig = overlay_measurements(
465-
msr_df, title, time_col_name, fig=vel_fig, show=False
465+
vel_fig, msr_df, title, time_col_name, show=False
466466
)
467467

468468
if html_out:
@@ -681,7 +681,7 @@ def plot_residuals(
681681
if msr_df is not None:
682682
# Plot the measurements on both plots
683683
fig = overlay_measurements(
684-
msr_df, title, time_col_name, fig=fig, show=False
684+
fig, msr_df, title, time_col_name, show=False
685685
)
686686

687687
finalize_plot(

0 commit comments

Comments
 (0)