larray-project / larray-editor

Graphical User Interface for LArray
GNU General Public License v3.0
2 stars 2 forks source link

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

Closed gdementen closed 11 months ago

gdementen commented 1 year ago

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 😉.