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

Correct return-type when inline=False #132

Merged
merged 1 commit into from Apr 27, 2021
Merged

Correct return-type when inline=False #132

merged 1 commit into from Apr 27, 2021

Conversation

maxmahlke
Copy link
Contributor

The plot functions do not return matplotlib.figure.Figure instances but matplotlib.axis.Axis instances when inline=False. Technically, they can also return matplotlib.axes._subplots.AxesSubplot instances when we are dealing with subplots, but I have left this out for clarity and since the subplot class inherits from the axis class, making them behave in the same way essentially. If you prefer, I can clarify this return-type behaviour in the documentation as well.

The plot functions do not return `matplotlib.figure.Figure` instances but `matplotlib.axis.Axis` instances when `inline=False`. Technically, they can also return `matplotlib.axes._subplots.AxesSubplot` instances when we are dealing with subplots, but I have left this out for clarity and since the subplot class inherits from the axis class, making them behave in the same way essentially. If you prefer, I can outline this behaviour in the documentation as well.
@ResidentMario
Copy link
Owner

Good catch!

@ResidentMario ResidentMario merged commit 8c31763 into ResidentMario:master Apr 27, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants