Incorrect returns from specgram

According to documentation 3.5.2 Specgram should return 2D “spectrum”, 1D “freqs” and 1D “t”. The first two are available, but last one (time) is not present.
Similarly, magnitude_spectrum, should return 1D “spectrum” and 1D “freqs”, but instead returns a 2D “spectrum”, which is actually two 1D arrays, one of spectrum and one of freqs.
Are these bugs or user misunderstanding the documentation?

Perhaps create a self contained minimal example and if you can reproduce submit a bug. However I don’t understand how there can be fewer that three objects returned based on the source code

Thanks for your response. Trying to generate another clean example showed up the problem. Turns out it was indeed my misinterpretation of the documentation, and unfamiliarity with the process…

···

From: Jody Klymak via Matplotlib nobody@discourse.matplotlib.org
Sent: Monday, July 25, 2022 23:05
To: robin_a_hodgson@hotmail.com robin_a_hodgson@hotmail.com
Subject: [Matplotlib] [Community/Installation] Incorrect returns from specgram

jklymak
July 25

Perhaps create a self contained minimal example and if you can reproduce submit a bug. However I don’t understand how there can be fewer that three objects returned based on the source code

Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.