Skip to content

Commit 9207374

Browse files
simontorreseteq
authored andcommitted
Renamed plot_quick to plot to override ndcube.plot
1 parent fff1386 commit 9207374

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

specutils/spectra/spectrum1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ def __repr__(self):
754754

755755
return result
756756

757-
def plot_quick(self, ax=None, x_name='spectral axis', y_name='flux',
757+
def plot(self, ax=None, x_name='spectral axis', y_name='flux',
758758
**kwargs):
759759
"""
760760
Visualize this spectrum using matplotlib in "histogram style".

specutils/tests/test_spectrum1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,5 +505,5 @@ def test_collapse_flux():
505505
@pytest.mark.skipif('not HAS_MATPLOTLIB')
506506
def test_plot():
507507
spec_single_flux = Spectrum1D([1, 2] * u.Jy, [3, 4] * u.nm)
508-
ax = spec_single_flux.plot_quick()
508+
ax = spec_single_flux.plot()
509509
assert isinstance(ax, matplotlib.axes.Axes)

0 commit comments

Comments
 (0)