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

Feature request: MatplotLib for iOS #712

Open
CoderKivy opened this issue May 29, 2022 · 4 comments
Open

Feature request: MatplotLib for iOS #712

CoderKivy opened this issue May 29, 2022 · 4 comments

Comments

@CoderKivy
Copy link

*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:
OtoJig/Python-Apple-support#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:
#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...
@gitgudyyao
Copy link

gitgudyyao commented Jan 5, 2023

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
Copy link
Member

misl6 commented Jan 5, 2023

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
Copy link
Contributor

tcaduser commented Sep 2, 2023

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

@tcaduser
Copy link
Contributor

tcaduser commented Sep 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

4 participants