kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
759 stars 238 forks source link

Feature request: MatplotLib for iOS #712

Open CoderKivy opened 2 years ago

CoderKivy commented 2 years ago

*Need MatplotLib for iOS and today I use it on my Android app. Matplotlig are a greate tool when you want to show result of calculations on a grapf.

Today a recipy exsist for android: https://github.com/kivy/python-for-android/tree/develop/pythonforandroid/recipes/matplotlib

If someone have iOS-recipy-skills, I think this info might help: https://github.com/OtoJig/Python-Apple-support/issues/4

Matplotlib depends on Numpy and I know there are also a problems with "multiarray_umath" with Numpy that have to be solved for Matplotlib to work. Here are a solution to this problem that I don't know to how implement: https://github.com/kivy/kivy-ios/issues/647

gitgudyyao commented 1 year ago

The first step is to build the Python for iOS target using the python-for-ios recipe. This will provide you with a Python interpreter that is compiled for iOS and can be used to run Matplotlib.

Next, you will need to install Matplotlib and its dependencies, including Numpy, using pip. You can do this by running the following command:

pip install matplotlib numpy Once Matplotlib is installed, you should be able to import it and use it in your iOS app to create and display plots and charts.

misl6 commented 1 year ago

The first step is to build the Python for iOS target using the python-for-ios recipe. This will provide you with a Python interpreter that is compiled for iOS and can be used to run Matplotlib.

Next, you will need to install Matplotlib and its dependencies, including Numpy, using pip. You can do this by running the following command:

pip install matplotlib numpy Once Matplotlib is installed, you should be able to import it and use it in your iOS app to create and display plots and charts

@gitgudyyao matplotlib is not a plain-python package, therefore can't be easily packaged into the app via toolchain pip install matplotlib.

matplotlib, like numpy (which have one) needs a recipe to be cross-compiled.

tcaduser commented 10 months ago

Is anyone working on this? Is there any way I can help?

tcaduser commented 10 months ago

I got it working, is there a standard procedure for making a pull request? image