kivy-garden / garden.matplotlib

Matplotlib backends using kivy
MIT License
104 stars 50 forks source link

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

Open sem376 opened 7 years ago

sem376 commented 7 years ago

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 commented 7 years ago

We need the full log.

martinegginton commented 7 years ago

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.