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

kivy matplotlib test_backend.py and test_plt.py display error and exit error #46

Open
sem376 opened this issue Dec 31, 2016 · 2 comments

Comments

@sem376
Copy link

sem376 commented Dec 31, 2016

Hello,
I'm using the following:
Windows 8 and Windows 10
IDE: Pycharm latest version
Python: version 3.4.4
Kivy: version 1.9.1
Matplotlib: version 1.5.3
Numpy: lastest version
Downloaded Matplotlib for kivy

When I test the test_backend.py code located here https://github.com/kivy-garden/garden.matplotlib/tree/master/examples, the code starts up, but the display isn't exactly how it suppose to look. Here attached is my display
error_graphs, and these two locations show similar graphs (graphs like test_plt.py. test_plt.py give the same errors) : http://matplotlib.org/examples/api/barchart_demo.html and https://andnovar.wordpress.com/2015/06/11/backend-for-kivy-in-matplotlib-first-steps/

Also, when I close the graph window, I get this error message:

[INFO ] [Base ] Leaving application in progress...

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Finally, when I run test_backend.py, I get errors in this line:
from kivy.garden.matplotlib.backend_kivyagg import FigureCanvas,
NavigationToolbar2Kivy
which says there are unresolved references for backend_kivyagg, FigureCanvas, NavigationToolbar2Kivy

Does anyone understand why errors are occurring?

Thanks

@matham
Copy link
Member

matham commented Feb 2, 2017

We need the full log.

@martinegginton
Copy link

Hi, I've a similar error

Very simple code

import matplotlib
matplotlib.use('module://kivy.garden.matplotlib.backend_kivy')
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(1,10,0.1)
y = x**2
fig = plt.figure()
ax, = plt.plot(x,y)
plt.show()

I attached the log
kivy_17-10-03_120.txt

Get the same issues with test_backend.py etc.

Any thoughts appreciated.

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

3 participants