From 9207374f18382355689673d931641dd0e16c6c08 Mon Sep 17 00:00:00 2001 From: Simon Torres Date: Wed, 15 Nov 2023 15:55:51 -0700 Subject: [PATCH] Renamed plot_quick to plot to override ndcube.plot --- specutils/spectra/spectrum1d.py | 2 +- specutils/tests/test_spectrum1d.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specutils/spectra/spectrum1d.py b/specutils/spectra/spectrum1d.py index d19962971..0b4d132df 100644 --- a/specutils/spectra/spectrum1d.py +++ b/specutils/spectra/spectrum1d.py @@ -754,7 +754,7 @@ def __repr__(self): return result - def plot_quick(self, ax=None, x_name='spectral axis', y_name='flux', + def plot(self, ax=None, x_name='spectral axis', y_name='flux', **kwargs): """ Visualize this spectrum using matplotlib in "histogram style". diff --git a/specutils/tests/test_spectrum1d.py b/specutils/tests/test_spectrum1d.py index 8b1e5b0fd..eddf7505a 100644 --- a/specutils/tests/test_spectrum1d.py +++ b/specutils/tests/test_spectrum1d.py @@ -505,5 +505,5 @@ def test_collapse_flux(): @pytest.mark.skipif('not HAS_MATPLOTLIB') def test_plot(): spec_single_flux = Spectrum1D([1, 2] * u.Jy, [3, 4] * u.nm) - ax = spec_single_flux.plot_quick() + ax = spec_single_flux.plot() assert isinstance(ax, matplotlib.axes.Axes)