Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd ylabel position in plot_time_freq #52

Closed
Aikhjarto opened this issue Nov 15, 2018 · 2 comments
Closed

Odd ylabel position in plot_time_freq #52

Aikhjarto opened this issue Nov 15, 2018 · 2 comments

Comments

@Aikhjarto
Copy link

Using plot_time_freq of a Window. The ylabel of the spectrum is plotted over the time domain plot.
Possible solution: add some space between time domain and frequency domain plot.

MWE:

import spectrum
wind=spectrum.Window(128,'hanning')
wind.plot_time_freq()

Result
window_hanning

@cokelaer
Copy link
Owner

thanks for reporting this issue. I am not aware of a general solution for this.
I have added a call to tight_layout() in the function , which should fix the issue under linux.
Another solution is to move the label to the right or to call each plot individually using:
plot_window() and plot_frequencies().

@cokelaer
Copy link
Owner

Fixed by placing the label to the right of the image. previous behaviour (ylabel to the left) is still
possible using yaxis_label_position argument.

cokelaer added a commit that referenced this issue Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants