You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the draw_matplotlib function in pyzx/drawing.py used to plt.show(), but was changed to plt.close() and then returns the figure. To then visualize the figure, it is necessary to create a dummy figure and then move the returned figure to its manager, but this breaks interactivity on my backend (MacOSX). Is there any particular reason why the figure is closed before returning?
The text was updated successfully, but these errors were encountered:
I am not sure why this there to be honest. My guess is that it was causing weird behaviour on certain platforms. I guess there could be an optional parameter to disable this behaviour.
It seems that the draw_matplotlib function in pyzx/drawing.py used to plt.show(), but was changed to plt.close() and then returns the figure. To then visualize the figure, it is necessary to create a dummy figure and then move the returned figure to its manager, but this breaks interactivity on my backend (MacOSX). Is there any particular reason why the figure is closed before returning?
The text was updated successfully, but these errors were encountered: