Comments (7)
Please see here for a brief description of what I am encountering.
from kivy-ios.
@tcaduser Could you possibly share some working code you used to develop the recipe?
from kivy-ios.
Matplotlib Compatibility:
Matplotlib is primarily designed for desktop environments and might not have full compatibility with iOS.
Limited Graphics Acceleration:
Kivy on iOS relies on OpenGL for rendering, but some features like Matplotlib plots might not be efficiently handled by the limited OpenGL support on iOS devices.
from kivy-ios.
@causeri3 Can you try my project if it solve your issue: https://github.com/mp-007/kivy_matplotlib_widget
My project used an other approach by using Agg backend. The rendering will be much faster.
You can used this working example:
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
import os
import numpy as np
import matplotlib.pyplot as plt
from kivy_matplotlib_widget.uix.graph_widget import MatplotFigure
#or use this widget if you have multiple axis and not just lines
#from kivy_matplotlib_widget.uix.graph_subplot_widget import MatplotFigureSubplot
class MatplotlibApp(App):
def build(self):
print("app.directory = ", self.directory)
print("app.user_data_dir = ", self.user_data_dir)
layout = BoxLayout()
x = np.linspace(0, 10, 100)
y = np.sin(x)
fig, ax = plt.subplots()
ax.plot(x, y, label='sin(x)')
ax.set_xlabel('x')
ax.set_ylabel('sin(x)')
figure_widget = MatplotFigure()
figure_widget.figure = fig
layout.add_widget(figure_widget)
return layout
if __name__ == '__main__':
MatplotlibApp().run()
from kivy-ios.
Can you run with the xcode debugger attached to your iphone and see if it crashes in the c code. I haven't worked with this recently, but I have had issues where I have needed to compile multiple times to get the code in a good state. I think there may be some caching issue between the IOS phone and phone simulator builds.
from kivy-ios.
Will try later, right now https://download.savannah.gnu.org seems to be down.
from kivy-ios.
Tbh, I gave up on matplotlib and visualize the data simplified with kivy widgets. The old XCode debugging logs from the build on my iPhone are above. For the moment, I keep on struggeling to get the App on TestFlight.
from kivy-ios.
Related Issues (20)
- Materialyoucolor-python Recipe HOT 1
- Got dlopen error on Foundation HOT 2
- Unable to build with kivymd==2.0 HOT 1
- MacOS toolchain build constantly failing (I think due to C extension errors) HOT 37
- Request to add 'recipe' for Libtorrent on kivy_ios
- Linker Command Failure Error While Building Python3 HOT 1
- Can't create a recipe HOT 1
- Pillow not building HOT 11
- EXC_BAD_ACCESS error thrown when running application HOT 5
- Dependency Dashboard
- zbarlight throwing error during build HOT 3
- Python error after building to iPhone Simulator HOT 2
- M1 mac python3 build error HOT 1
- How is Accelerate not supported? HOT 1
- Kivy-ios and Xcode 15 build error Command PhaseScriptExecution failed with a nonzero exit code HOT 5
- README.md contains invalid link to recipes documentation
- Toolchain does not build with Xcode 15.4 HOT 5
- opencv-python recipe
- Pandas please HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kivy-ios.