From 10674d9b3b1698338e25f253e186272d05d593cd Mon Sep 17 00:00:00 2001 From: Nathan Keim Date: Fri, 7 Jun 2024 15:54:28 -0400 Subject: [PATCH] TST: Add smoke test for plot_traj3d --- trackpy/tests/test_plots.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trackpy/tests/test_plots.py b/trackpy/tests/test_plots.py index ea645938..7c8ec8a2 100644 --- a/trackpy/tests/test_plots.py +++ b/trackpy/tests/test_plots.py @@ -57,6 +57,12 @@ def test_ptraj_t_column(self): df.columns = cols plots.plot_traj(df, t_column='arbitrary name') + def test_ptraj3d(self): + sparse3d = self.sparse.copy() + sparse3d['z'] = 0 + # smoke test + plots.plot_traj3d(sparse3d) + def test_annotate(self): suppress_plotting() f = DataFrame({'x': [0, 1], 'y': [0, 1], 'frame': [0, 0],