-
Notifications
You must be signed in to change notification settings - Fork 147
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
diagnose failure of interactive #5
Comments
I had another friend tell me that everything worked, except there was no animation of the face turns. My guess is there is different For reference, a video of how it looks on my machine can be seen here: http://jakevdp.github.com/blog/2012/11/26/3d-interactive-rubiks-cube-in-python/ |
Is there a backend in your .matplotlibrc? And/or can you specify a backend where you know it works? Then I can use that one. |
I've only tested it on TkAgg |
On Mac OS X using TkAgg backend, I was having the problem with no animation of the cube layers movement. This is the fix that worked for me. At the end of the _draw_cube method after the call to self.figure.canvas.draw() add the following line: self.figure.canvas.flush_events() That should do it. I got a clue when running the code under a debugger and saw that the cube layers did indeed animate. I also saw the animation when run unmodified on a RPi. The Matplotlib docs did say the plot is not automatically re-drawn with the draw method. |
it doesn't work for me.
The text was updated successfully, but these errors were encountered: