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

"Configure subplots" tool is initialized very inefficiently in the Qt backends #6058

Closed
anntzer opened this issue Feb 25, 2016 · 0 comments
Closed
Assignees
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Feb 25, 2016

Instrument fig.canvas.draw as follows:

from pylab import *
fig, ax = subplots()
__old_draw = fig.canvas.draw
def draw():
    print("drawing")
    __old_draw()
fig.canvas.draw = draw
show()

Clicking on the "configure subplots" button shows that in the Qt backends even without touching the sliders, the figure is redrawn 8(!) times just by the time the dialog is created (probably once for each slider initialization). As a comparison, the Tk backend does not redraw the figure once.
This is rather annoying when working with slow-to-draw figures, e.g. plt.plot(np.random.rand(1e5)).

python 3.5.1, matplotlib 1.5.1

@tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone Feb 25, 2016
@tacaswell tacaswell self-assigned this Feb 25, 2016
tacaswell added a commit to tacaswell/matplotlib that referenced this issue May 22, 2016
anntzer pushed a commit to anntzer/matplotlib that referenced this issue Jul 24, 2016
anntzer pushed a commit to anntzer/matplotlib that referenced this issue Jul 24, 2016
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