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

Using matplotlib.pyplot.show in console leads to figure shown twice #265

Closed
gdementen opened this issue Oct 5, 2023 · 0 comments
Closed
Assignees
Milestone

Comments

@gdementen
Copy link
Collaborator

Test case (to type in the viewer console):

import matplotlib.pyplot as plt
import larray as la

def plot_and_show(arr):
    ax = arr.plot()
    plt.show()
    return ax

plot_and_show(la.ndtest(4))

This is really a very rare case currently but is a lot more frequent after larray-project/larray#620 (which is implemented in my devel branch) and thus this issue annoys me 😉.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant