From e4cfccc4225eb6b8e12e2934602248a08eaffb3c 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 2e806ed56..0877d2945 100644 --- a/specutils/spectra/spectrum1d.py +++ b/specutils/spectra/spectrum1d.py @@ -769,7 +769,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 fe699a167..b4c0db978 100644 --- a/specutils/tests/test_spectrum1d.py +++ b/specutils/tests/test_spectrum1d.py @@ -549,5 +549,5 @@ def test_spectral_axis_direction(): @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)