Skip to content

Commit

Permalink
Update and extend plot tests for non-uniform axes
Browse files Browse the repository at this point in the history
  • Loading branch information
pietsjoh committed Aug 16, 2023
1 parent 38c8cc0 commit 15c1a9b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions hyperspy/tests/drawing/test_plot_signal1d.py
Expand Up @@ -229,6 +229,12 @@ def test_plot_non_uniform_sig(self):
self.s.plot()
return self.s._plot.signal_plot.figure

@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir,
tolerance=default_tol, style=style_pytest_mpl)
def test_plot_uniform_nav(self):
self.s.plot()
return self.s._plot.navigator_plot.figure

@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir,
tolerance=default_tol, style=style_pytest_mpl)
def test_plot_non_uniform_nav(self):
Expand Down
6 changes: 6 additions & 0 deletions hyperspy/tests/drawing/test_plot_signal2d.py
Expand Up @@ -258,6 +258,12 @@ def test_plot_non_uniform_nav(self):
self.s.plot()
return self.s._plot.navigator_plot.figure

@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir,
tolerance=default_tol, style=style_pytest_mpl)
def test_plot_non_uniform_2s1n_sig(self):
self.s.plot()
return self.s._plot.signal_plot.figure

@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir,
tolerance=default_tol, style=style_pytest_mpl)
def test_plot_non_uniform_sig(self):
Expand Down

0 comments on commit 15c1a9b

Please sign in to comment.