Code Monkey home page Code Monkey logo

Comments (7)

tcaduser avatar tcaduser commented on August 24, 2024 1

Please see here for a brief description of what I am encountering.

#865

from kivy-ios.

causeri3 avatar causeri3 commented on August 24, 2024

@tcaduser Could you possibly share some working code you used to develop the recipe?

from kivy-ios.

ComputerVision804 avatar ComputerVision804 commented on August 24, 2024

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.

mp-007 avatar mp-007 commented on August 24, 2024

@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.

tcaduser avatar tcaduser commented on August 24, 2024

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.

causeri3 avatar causeri3 commented on August 24, 2024

Will try later, right now https://download.savannah.gnu.org seems to be down.

from kivy-ios.

causeri3 avatar causeri3 commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.