specutils icon indicating copy to clipboard operation
specutils copied to clipboard

Spectrum1D is reading the file but not able to plot on matplotli

Open astrohitc opened this issue 2 years ago • 1 comments

I am trying to plot a 1d spectrum using specutils. Spectrum1D.read is reading the file but when I use plt.plot(spec.wavelength, spec.flux), it is giving an error saying

"x and y must have same first dimension, but have shapes (27001,) and (3, 27001)"

Can anyone please help on how to solve this issue?

Thanks

astrohitc avatar May 20 '22 06:05 astrohitc

Do you know why your flux has shape of (3, 27001)?

pllim avatar May 24 '22 17:05 pllim

No reply, so closing.

pllim avatar Feb 13 '23 22:02 pllim