kivy-ios icon indicating copy to clipboard operation
kivy-ios copied to clipboard

Feature request: MatplotLib for iOS

Open CoderKivy opened this issue 2 years ago • 4 comments

*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

  • Thinking of user "w3sip" and the solution: "Adding -Wl,-force_load,libnumpy.a to the binary linking with Kivy"
  • I never made a request before and I'm sorry if did somthing wrong...

CoderKivy avatar May 29 '22 18:05 CoderKivy

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 avatar Jan 05 '23 03:01 gitgudyyao

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.

misl6 avatar Jan 05 '23 08:01 misl6

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

tcaduser avatar Sep 02 '23 03:09 tcaduser

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

tcaduser avatar Sep 08 '23 22:09 tcaduser