Skip to content

Commit

Permalink
Renamed plot_quick to plot to override ndcube.plot
Browse files Browse the repository at this point in the history
  • Loading branch information
simontorres authored and eteq committed Nov 15, 2023
1 parent 8b250d7 commit e4cfccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specutils/spectra/spectrum1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down
2 changes: 1 addition & 1 deletion specutils/tests/test_spectrum1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e4cfccc

Please sign in to comment.